aboutsummaryrefslogtreecommitdiff
path: root/ext/settings.html
diff options
context:
space:
mode:
authorStefanVukovic99 <stefanvukovic44@gmail.com>2024-05-21 18:55:02 +0200
committerGitHub <noreply@github.com>2024-05-21 16:55:02 +0000
commitba9fa339a43a5f494785877018b10f111ccafff5 (patch)
tree1a4a0b141e08cfe767170425d5afda253bf92990 /ext/settings.html
parent737e7eab8182fc4e083f7fd6df840327ab83287c (diff)
add support for overwriting existing card (#859)
* frontend * wip * minimum viable * minor simplification * simplify gradients in duplicate svg * simplify add-duplicate svg * colors good * arrows shape * disable overwrite if no valid duplicate IDs * add warning
Diffstat (limited to 'ext/settings.html')
-rw-r--r--ext/settings.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/settings.html b/ext/settings.html
index 525e99b1..12281764 100644
--- a/ext/settings.html
+++ b/ext/settings.html
@@ -1709,10 +1709,20 @@
<div class="settings-item-right">
<select data-setting="anki.duplicateBehavior">
<option value="prevent">Prevent adding</option>
+ <option value="overwrite">Allow overwriting</option>
<option value="new">Allow adding</option>
</select>
</div>
</div>
+ <div class="settings-item-children" id="anki-overwrite-warning" hidden>
+ <p class="danger-text">
+ Overwriting a card can result in the loss of data.
+ </p>
+ <p class="warning-text">
+ Duplicate cards of a different note type cannot be overwritten.
+ If there are multiple duplicate cards, the first card found will be overwritten.
+ </p>
+ </div>
</div>
</div>
</div>