diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-10-27 21:20:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-27 21:20:26 -0400 |
commit | ba59327354c5e3465f633839a052b7514c216fd1 (patch) | |
tree | 85eba4c94323b54d99239c1b2f008501afd40b49 /ext/bg/js/settings/dictionary-import-controller.js | |
parent | 9e57509e25a7d750e7113b1d41f1d3af732ff934 (diff) |
Dictionary controllers update (#965)
* Make purge notification optional
* Support multiple warning nodes
* Add support for optional count info
Diffstat (limited to 'ext/bg/js/settings/dictionary-import-controller.js')
-rw-r--r-- | ext/bg/js/settings/dictionary-import-controller.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/settings/dictionary-import-controller.js b/ext/bg/js/settings/dictionary-import-controller.js index a603fb82..22146ec1 100644 --- a/ext/bg/js/settings/dictionary-import-controller.js +++ b/ext/bg/js/settings/dictionary-import-controller.js @@ -101,7 +101,7 @@ class DictionaryImportController { this._setModifying(true); this._hideErrors(); this._setSpinnerVisible(true); - purgeNotification.hidden = false; + if (purgeNotification !== null) { purgeNotification.hidden = false; } await api.purgeDatabase(); const errors = await this._clearDictionarySettings(); @@ -113,7 +113,7 @@ class DictionaryImportController { this._showErrors([error]); } finally { prevention.end(); - purgeNotification.hidden = true; + if (purgeNotification !== null) { purgeNotification.hidden = true; } this._setSpinnerVisible(false); this._storageController.updateStats(); this._setModifying(false); |