mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
Added import processing message.
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user