summaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/dictionary-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 14:19:50 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2023-11-27 14:19:50 -0500
commit5dc16745468c229e7c31f6cddaad83fb9c36b98f (patch)
tree19d812914c9a95019f30bf7ba800f892c0f94ab8 /ext/js/pages/settings/dictionary-controller.js
parent208c43edbd714041b7f956d288e29172f1c0ce78 (diff)
Update types
Diffstat (limited to 'ext/js/pages/settings/dictionary-controller.js')
-rw-r--r--ext/js/pages/settings/dictionary-controller.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js
index aa59bb97..de63b200 100644
--- a/ext/js/pages/settings/dictionary-controller.js
+++ b/ext/js/pages/settings/dictionary-controller.js
@@ -336,15 +336,15 @@ class DictionaryExtraInfo {
export class DictionaryController {
/**
* @param {import('./settings-controller.js').SettingsController} settingsController
- * @param {ModalController} modalController
- * @param {StatusFooter} statusFooter
+ * @param {import('./modal-controller.js').ModalController} modalController
+ * @param {import('./status-footer.js').StatusFooter} statusFooter
*/
constructor(settingsController, modalController, statusFooter) {
/** @type {import('./settings-controller.js').SettingsController} */
this._settingsController = settingsController;
- /** @type {ModalController} */
+ /** @type {import('./modal-controller.js').ModalController} */
this._modalController = modalController;
- /** @type {StatusFooter} */
+ /** @type {import('./status-footer.js').StatusFooter} */
this._statusFooter = statusFooter;
/** @type {?import('dictionary-importer').Summary[]} */
this._dictionaries = null;
@@ -366,7 +366,7 @@ export class DictionaryController {
this._noDictionariesInstalledWarnings = null;
/** @type {?NodeListOf<HTMLElement>} */
this._noDictionariesEnabledWarnings = null;
- /** @type {?Modal} */
+ /** @type {?import('./modal.js').Modal} */
this._deleteDictionaryModal = null;
/** @type {?HTMLInputElement} */
this._allCheckbox = null;
@@ -376,7 +376,7 @@ export class DictionaryController {
this._isDeleting = false;
}
- /** @type {ModalController} */
+ /** @type {import('./modal-controller.js').ModalController} */
get modalController() {
return this._modalController;
}
@@ -418,7 +418,7 @@ export class DictionaryController {
*/
deleteDictionary(dictionaryTitle) {
if (this._isDeleting) { return; }
- const modal = /** @type {Modal} */ (this._deleteDictionaryModal);
+ const modal = /** @type {import('./modal.js').Modal} */ (this._deleteDictionaryModal);
modal.node.dataset.dictionaryTitle = dictionaryTitle;
const nameElement = /** @type {Element} */ (modal.node.querySelector('#dictionary-confirm-delete-name'));
nameElement.textContent = dictionaryTitle;
@@ -671,7 +671,7 @@ export class DictionaryController {
_onDictionaryConfirmDelete(e) {
e.preventDefault();
- const modal = /** @type {Modal} */ (this._deleteDictionaryModal);
+ const modal = /** @type {import('./modal.js').Modal} */ (this._deleteDictionaryModal);
modal.setVisible(false);
const title = modal.node.dataset.dictionaryTitle;
@@ -691,7 +691,7 @@ export class DictionaryController {
/** */
_onDictionaryMoveButtonClick() {
- const modal = /** @type {Modal} */ (this._modalController.getModal('dictionary-move-location'));
+ const modal = /** @type {import('./modal.js').Modal} */ (this._modalController.getModal('dictionary-move-location'));
const {index} = modal.node.dataset;
if (typeof index !== 'number') { return; }
const indexNumber = Number.parseInt(index, 10);