Fix wording

This commit is contained in:
Gustavo Maximiliano Cortez 2017-01-23 10:51:39 -03:00
commit 1693e9e02e
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -5,12 +5,18 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
$scope.$on("$ionicView.beforeEnter", function(event, data) {
if (!data.stateParams || !data.stateParams.walletId) {
popupService.showAlert(null, gettextCatalog.getString('Bad param'), function() {
popupService.showAlert(null, gettextCatalog.getString('No wallet selected'), function() {
$ionicHistory.goBack();
});
return;
}
$scope.wallet = profileService.getWallet(data.stateParams.walletId);
if (!$scope.wallet) {
popupService.showAlert(null, gettextCatalog.getString('No wallet found'), function() {
$ionicHistory.goBack();
});
return;
}
$scope.alias = lodash.isEqual($scope.wallet.name, $scope.wallet.credentials.walletName) ? null : $scope.wallet.name + ' ';
$scope.walletName = $scope.wallet.credentials.walletName;
});