From 2bc5d92c78d84105048f638ae244d9cec5c790b2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 29 Dec 2015 21:47:07 -0500 Subject: [PATCH] Added import processing message. --- .../app/tools/toolsImportController.js | 7 ++++--- .../wwwroot/app/tools/views/toolsImport.html | 20 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/Vault/wwwroot/app/tools/toolsImportController.js b/src/Vault/wwwroot/app/tools/toolsImportController.js index 8a616cb99b..981f109a8e 100644 --- a/src/Vault/wwwroot/app/tools/toolsImportController.js +++ b/src/Vault/wwwroot/app/tools/toolsImportController.js @@ -5,6 +5,7 @@ $scope.model = { source: 'local' }; $scope.import = function (model) { + $scope.processing = true; var file = document.getElementById('file').files[0]; // local @@ -77,7 +78,7 @@ }; function doImport(folders, sites, siteRelationships) { - $scope.importPromise = apiService.accounts.import({ + apiService.accounts.import({ folders: cipherService.encryptFolders(folders, cryptoService.getKey()), sites: cipherService.encryptSites(sites, cryptoService.getKey()), siteRelationships: siteRelationships @@ -88,8 +89,8 @@ }); }, function () { $uibModalInstance.dismiss('cancel'); - toastr.error('Something went wrong.', 'Oh No!'); - }).$promise; + toastr.error('Something went wrong. Try again.', 'Oh No!'); + }); } $scope.close = function () { diff --git a/src/Vault/wwwroot/app/tools/views/toolsImport.html b/src/Vault/wwwroot/app/tools/views/toolsImport.html index a406032735..ae82441896 100644 --- a/src/Vault/wwwroot/app/tools/views/toolsImport.html +++ b/src/Vault/wwwroot/app/tools/views/toolsImport.html @@ -2,17 +2,11 @@ -
+