From 8707b5cc065382ff80c6c312d03816d2b3101c18 Mon Sep 17 00:00:00 2001 From: Cashew Date: Mon, 26 Aug 2024 00:47:43 +0700 Subject: [PATCH] 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 12fb5a4bb8..31a37a0fd7 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 1774faad17..2c57fdd37e 100644 --- a/ext/settings.html +++ b/ext/settings.html @@ -201,6 +201,16 @@

Yomitan Settings

+
+
+
+
Get recommended dictionaries…
+
+
+ +
+
+
@@ -3768,5 +3778,51 @@
or click here to upload
+ + +