From 7a4096240ce4faf70a785d047945388baa0daab3 Mon Sep 17 00:00:00 2001 From: Eloy Robillard Date: Thu, 15 Feb 2024 04:02:36 +0100 Subject: Show all duplicate notes on click (#636) * Show all duplicate notes on click * Change 'notesView' to 'viewNotes' * Replace api.noteView with api.viewNotes * Update "viewNote" action to "viewNotes" in options util * Update options-util test with "viewNotes" action * Replace uses of "viewNote" with "viewNotes" * Replace _viewNote with _viewNotes * Rename /*ViewNote*/ methods to /*ViewNotes*/ --- ext/js/pages/settings/anki-controller.js | 2 +- ext/js/pages/settings/keyboard-shortcuts-controller.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/js/pages') diff --git a/ext/js/pages/settings/anki-controller.js b/ext/js/pages/settings/anki-controller.js index a2948eda..3a6345ed 100644 --- a/ext/js/pages/settings/anki-controller.js +++ b/ext/js/pages/settings/anki-controller.js @@ -455,7 +455,7 @@ export class AnkiController { throw new Error('Could not find a note to test with'); } - await this._settingsController.application.api.noteView(noteId, mode, false); + await this._settingsController.application.api.viewNotes([noteId], mode, false); } /** diff --git a/ext/js/pages/settings/keyboard-shortcuts-controller.js b/ext/js/pages/settings/keyboard-shortcuts-controller.js index 24d34d5b..7b28a322 100644 --- a/ext/js/pages/settings/keyboard-shortcuts-controller.js +++ b/ext/js/pages/settings/keyboard-shortcuts-controller.js @@ -62,7 +62,7 @@ export class KeyboardShortcutController { ['addNoteKanji', {scopes: new Set(['popup', 'search'])}], ['addNoteTermKanji', {scopes: new Set(['popup', 'search'])}], ['addNoteTermKana', {scopes: new Set(['popup', 'search'])}], - ['viewNote', {scopes: new Set(['popup', 'search'])}], + ['viewNotes', {scopes: new Set(['popup', 'search'])}], ['playAudio', {scopes: new Set(['popup', 'search'])}], ['playAudioFromSource', {scopes: new Set(['popup', 'search']), argument: {template: 'hotkey-argument-audio-source', default: 'jpod101'}}], ['copyHostSelection', {scopes: new Set(['popup'])}], -- cgit v1.2.3