From 7ee76d708934adeef06479f7757beb22c6c01d14 Mon Sep 17 00:00:00 2001 From: Eloy Robillard Date: Mon, 18 Mar 2024 12:19:27 +0100 Subject: Add an option to allow both viewing and adding duplicates (#693) * Detect duplicates when checking if can add note * Display the stacked add buttons --- ext/js/data/anki-note-builder.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/js/data') diff --git a/ext/js/data/anki-note-builder.js b/ext/js/data/anki-note-builder.js index e156103a..6a6a6177 100644 --- a/ext/js/data/anki-note-builder.js +++ b/ext/js/data/anki-note-builder.js @@ -54,7 +54,6 @@ export class AnkiNoteBuilder { fields, tags = [], requirements = [], - checkForDuplicates = true, duplicateScope = 'collection', duplicateScopeCheckAllModels = false, resultOutputMode = 'split', @@ -111,7 +110,7 @@ export class AnkiNoteBuilder { deckName, modelName, options: { - allowDuplicate: !checkForDuplicates, + allowDuplicate: true, duplicateScope, duplicateScopeOptions: { deckName: duplicateScopeDeckName, -- cgit v1.2.3