summaryrefslogtreecommitdiffstats
path: root/js/components/contactImport/contactImport_directive.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/components/contactImport/contactImport_directive.js')
-rw-r--r--js/components/contactImport/contactImport_directive.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/components/contactImport/contactImport_directive.js b/js/components/contactImport/contactImport_directive.js
index 29cd8c41..d8ea85e5 100644
--- a/js/components/contactImport/contactImport_directive.js
+++ b/js/components/contactImport/contactImport_directive.js
@@ -13,12 +13,14 @@ angular.module('contactsApp')
ctrl.importText = ctrl.t.importingText;
ctrl.loadingClass = 'icon-loading-small';
ctrl.importing = true;
+ $rootScope.importing = true;
ContactService.import.call(ContactService, reader.result, file.type, ctrl.selectedAddressBook, function (progress, user) {
if (progress === 1) {
ctrl.importText = ctrl.t.importText;
ctrl.loadingClass = 'icon-upload';
ctrl.importing = false;
+ $rootScope.importing = false;
ImportService.importPercent = 0;
ImportService.importing = false;
ImportService.importedUser = '';