From c0d47b67a1a8c39d4b58214cd5d023dcb5ab74f3 Mon Sep 17 00:00:00 2001 From: Khai Truong Date: Sat, 21 Sep 2024 22:00:50 +0700 Subject: [PATCH] shared-modals --- ext/js/pages/settings/settings-main.js | 2 +- ext/js/pages/welcome-main.js | 30 +++++++++++++------------- ext/templates-modals.html | 2 +- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/ext/js/pages/settings/settings-main.js b/ext/js/pages/settings/settings-main.js index 05759ea6ed..f070c03876 100644 --- a/ext/js/pages/settings/settings-main.js +++ b/ext/js/pages/settings/settings-main.js @@ -85,7 +85,7 @@ await Application.main(true, async (application) => { const preparePromises = []; - const modalController = new ModalController(['welcome-modals', 'settings-modals']); + const modalController = new ModalController(['shared-modals', 'settings-modals']); await modalController.prepare(); const settingsController = new SettingsController(application); diff --git a/ext/js/pages/welcome-main.js b/ext/js/pages/welcome-main.js index a72368dca3..265d97b234 100644 --- a/ext/js/pages/welcome-main.js +++ b/ext/js/pages/welcome-main.js @@ -16,20 +16,20 @@ * along with this program. If not, see . */ -import {Application} from '../application.js'; -import {DocumentFocusController} from '../dom/document-focus-controller.js'; -import {querySelectorNotNull} from '../dom/query-selector.js'; -import {ExtensionContentController} from './common/extension-content-controller.js'; -import {DictionaryController} from './settings/dictionary-controller.js'; -import {DictionaryImportController} from './settings/dictionary-import-controller.js'; -import {GenericSettingController} from './settings/generic-setting-controller.js'; -import {LanguagesController} from './settings/languages-controller.js'; -import {ModalController} from './settings/modal-controller.js'; -import {RecommendedPermissionsController} from './settings/recommended-permissions-controller.js'; -import {ScanInputsSimpleController} from './settings/scan-inputs-simple-controller.js'; -import {SettingsController} from './settings/settings-controller.js'; -import {SettingsDisplayController} from './settings/settings-display-controller.js'; -import {StatusFooter} from './settings/status-footer.js'; +import { Application } from '../application.js'; +import { DocumentFocusController } from '../dom/document-focus-controller.js'; +import { querySelectorNotNull } from '../dom/query-selector.js'; +import { ExtensionContentController } from './common/extension-content-controller.js'; +import { DictionaryController } from './settings/dictionary-controller.js'; +import { DictionaryImportController } from './settings/dictionary-import-controller.js'; +import { GenericSettingController } from './settings/generic-setting-controller.js'; +import { LanguagesController } from './settings/languages-controller.js'; +import { ModalController } from './settings/modal-controller.js'; +import { RecommendedPermissionsController } from './settings/recommended-permissions-controller.js'; +import { ScanInputsSimpleController } from './settings/scan-inputs-simple-controller.js'; +import { SettingsController } from './settings/settings-controller.js'; +import { SettingsDisplayController } from './settings/settings-display-controller.js'; +import { StatusFooter } from './settings/status-footer.js'; /** * @param {import('../comm/api.js').API} api @@ -60,7 +60,7 @@ async function checkNeedsCustomTemplatesWarning() { } await Application.main(true, async (application) => { - const modalController = new ModalController(['welcome-modals']); + const modalController = new ModalController(['shared-modals']); await modalController.prepare(); const settingsController = new SettingsController(application); diff --git a/ext/templates-modals.html b/ext/templates-modals.html index 26bf1b8d66..09e4eb997c 100644 --- a/ext/templates-modals.html +++ b/ext/templates-modals.html @@ -1,6 +1,6 @@ Templates -