aboutsummaryrefslogtreecommitdiff
path: root/ext/js/pages/settings/main.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-02 20:27:51 -0500
committerGitHub <noreply@github.com>2021-03-02 20:27:51 -0500
commit4208595293a18c2cd95064caf77db786c2902ac8 (patch)
treebff87aa2eb501ad5cd11bdf70b2048edb662ffa2 /ext/js/pages/settings/main.js
parent571b865ae5207acb8e58a5ee38e4ed900194f7fb (diff)
Persistent storage controller (#1478)
* Add PersistentStorageController * Update DictionaryController * Update DictionaryImportController * Update when storage stats are updated
Diffstat (limited to 'ext/js/pages/settings/main.js')
-rw-r--r--ext/js/pages/settings/main.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/js/pages/settings/main.js b/ext/js/pages/settings/main.js
index 9785ee0e..3ccf2dd6 100644
--- a/ext/js/pages/settings/main.js
+++ b/ext/js/pages/settings/main.js
@@ -25,6 +25,7 @@
* GenericSettingController
* ModalController
* PermissionsToggleController
+ * PersistentStorageController
* PopupPreviewController
* ProfileController
* ScanInputsController
@@ -63,7 +64,10 @@ async function setupEnvironmentInfo() {
const settingsController = new SettingsController(optionsFull.profileCurrent);
settingsController.prepare();
- const storageController = new StorageController();
+ const persistentStorageController = new PersistentStorageController();
+ persistentStorageController.prepare();
+
+ const storageController = new StorageController(persistentStorageController);
storageController.prepare();
const genericSettingController = new GenericSettingController(settingsController);
@@ -81,10 +85,10 @@ async function setupEnvironmentInfo() {
const profileController = new ProfileController(settingsController, modalController);
profileController.prepare();
- const dictionaryController = new DictionaryController(settingsController, modalController, storageController, null);
+ const dictionaryController = new DictionaryController(settingsController, modalController, null);
dictionaryController.prepare();
- const dictionaryImportController = new DictionaryImportController(settingsController, modalController, storageController, null);
+ const dictionaryImportController = new DictionaryImportController(settingsController, modalController, null);
dictionaryImportController.prepare();
const ankiController = new AnkiController(settingsController);