Show alias to notification after delete the wallet

This commit is contained in:
Gustavo Maximiliano Cortez 2015-07-14 17:27:31 -03:00
commit 91b0bb2854
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -35,14 +35,14 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
var _deleteWallet = function() {
var fc = profileService.focusedClient;
var name = fc.credentials.walletName;
var walletName = (fc.alias||'') + ' [' + name + ']';
var walletName = name + (fc.alias ? ' (' + fc.alias + ')' : '' );
var self = this;
profileService.deleteWalletFC({}, function(err) {
if (err) {
self.error = err.message || err;
} else {
notification.success(gettext('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: name}));
notification.success(gettext('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {walletName: walletName}));
}
});
};