Fix wording
This commit is contained in:
parent
6e9fa52016
commit
1693e9e02e
1 changed files with 7 additions and 1 deletions
|
|
@ -5,12 +5,18 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
|
||||||
|
|
||||||
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
$scope.$on("$ionicView.beforeEnter", function(event, data) {
|
||||||
if (!data.stateParams || !data.stateParams.walletId) {
|
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();
|
$ionicHistory.goBack();
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$scope.wallet = profileService.getWallet(data.stateParams.walletId);
|
$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.alias = lodash.isEqual($scope.wallet.name, $scope.wallet.credentials.walletName) ? null : $scope.wallet.name + ' ';
|
||||||
$scope.walletName = $scope.wallet.credentials.walletName;
|
$scope.walletName = $scope.wallet.credentials.walletName;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue