summaryrefslogtreecommitdiff
path: root/ext/bg/js/import.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bg/js/import.js')
-rw-r--r--ext/bg/js/import.js10
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/bg/js/import.js b/ext/bg/js/import.js
index ebc7c7be..0601cb9f 100644
--- a/ext/bg/js/import.js
+++ b/ext/bg/js/import.js
@@ -17,9 +17,13 @@
*/
-function api_setProgress({state, progress}) {
- const str = `${progress}%`;
- $('.progress-bar').css('width', str).text(str);
+function api_setProgress(progress) {
+ $('.progress-bar').css('width', `${progress}%`);
+
+ if (progress === 100.0) {
+ $('.progress').hide();
+ $('.alert').show();
+ }
}
chrome.runtime.onMessage.addListener(({action, params}, sender, callback) => {