diff options
author | Alex Yatskov <alex@foosoft.net> | 2016-11-13 19:22:11 -0800 |
---|---|---|
committer | Alex Yatskov <alex@foosoft.net> | 2016-11-13 19:22:11 -0800 |
commit | 8ad217970f3b0c66c7020d30593cc0c61e1129e9 (patch) | |
tree | d2b62f71abedec346d386e8f17b6073fa39da82e /ext/bg/js/options-form.js | |
parent | a9fb56688434164e30f8f94868c652be7e7d69ad (diff) |
WIP
Diffstat (limited to 'ext/bg/js/options-form.js')
-rw-r--r-- | ext/bg/js/options-form.js | 8 |
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)); }); } |