giving proper feedback
This commit is contained in:
parent
e3aafbf860
commit
094f38c5e9
1 changed files with 5 additions and 5 deletions
|
|
@ -52,9 +52,9 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$location.path('/');
|
$location.path('/');
|
||||||
setTimeout(function() {
|
$timeout(function() {
|
||||||
notification.error('Success', 'Profile successfully deleted');
|
notification.error('Success', 'Profile successfully deleted');
|
||||||
}, 1);
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -73,10 +73,10 @@ angular.module('copayApp.controllers').controller('ProfileController', function(
|
||||||
identityService.deleteWallet($scope.item, function(err) {
|
identityService.deleteWallet($scope.item, function(err) {
|
||||||
if (err) {
|
if (err) {
|
||||||
$scope.loading = null;
|
$scope.loading = null;
|
||||||
$scope.error = err.message;
|
$scope.error = err.message || err;
|
||||||
copay.logger.warn(err);
|
copay.logger.warn(err);
|
||||||
}
|
$timeout(function () { $scope.$digest(); });
|
||||||
else {
|
} else {
|
||||||
$modalInstance.close($scope.item.name || $scope.item.id);
|
$modalInstance.close($scope.item.name || $scope.item.id);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue