aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/options-form.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r--ext/bg/js/options-form.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/options-form.js b/ext/bg/js/options-form.js
index 68a18d8f..d1e6fa18 100644
--- a/ext/bg/js/options-form.js
+++ b/ext/bg/js/options-form.js
@@ -313,6 +313,12 @@ function populateDictionaries(opts) {
}
function onPurgeDb() {
+ const dictControls = $('#dict-importer, #dict-groups');
+ dictControls.hide();
+
+ const dictProgress = $('.dict-purge-progress');
+ dictProgress.show();
+
const dictError = $('#dict-error');
dictError.hide();
@@ -323,6 +329,8 @@ function onPurgeDb() {
dictError.show().find('span').text(error);
}).then(() => {
dictSpinner.hide();
+ dictProgress.hide();
+ dictControls.show();
return loadOptions().then(opts => populateDictionaries(opts));
});
}