From 97815b5cfa1a4aec0924be85a928b7b83a147155 Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Casheeew@users.noreply.github.com> Date: Mon, 26 Aug 2024 21:29:00 +0700 Subject: [PATCH] Add recommended dictionaries to settings page (#1355) add recommended dictionaries to settings page --- .../settings/dictionary-import-controller.js | 1 - ext/settings.html | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) diff --git a/ext/js/pages/settings/dictionary-import-controller.js b/ext/js/pages/settings/dictionary-import-controller.js index b546ed806c..f9b901c0bd 100644 --- a/ext/js/pages/settings/dictionary-import-controller.js +++ b/ext/js/pages/settings/dictionary-import-controller.js @@ -95,7 +95,6 @@ export class DictionaryImportController { this._settingsController.on('importDictionaryFromUrl', this._onEventImportDictionaryFromUrl.bind(this)); - // Welcome page const recommendedDictionaryButton = document.querySelector('[data-modal-action="show,recommended-dictionaries"]'); if (recommendedDictionaryButton) { recommendedDictionaryButton.addEventListener('click', this._renderRecommendedDictionaries.bind(this), false); diff --git a/ext/settings.html b/ext/settings.html index 4ae0e9f31a..168fefac38 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -201,6 +201,16 @@

Yomitan Settings

+
+
+
+
Get recommended dictionaries…
+
+
+ +
+
+
@@ -3795,5 +3805,51 @@
or click here to upload
+ + +