Fix delete last wallet

This commit is contained in:
Gustavo Maximiliano Cortez 2016-04-11 10:50:50 -03:00
commit 1f60f46081
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF

View file

@ -1,7 +1,7 @@
'use strict'; 'use strict';
angular.module('copayApp.controllers').controller('preferencesDeleteWalletController', angular.module('copayApp.controllers').controller('preferencesDeleteWalletController',
function($scope, $rootScope, $filter, $timeout, $modal, $log, storageService, notification, profileService, isCordova, go, gettext, gettextCatalog, animationService) { function($scope, $rootScope, $filter, $timeout, $modal, $log, storageService, notification, profileService, isCordova, go, gettext, gettextCatalog, animationService, applicationService) {
this.isCordova = isCordova; this.isCordova = isCordova;
this.error = null; this.error = null;
@ -56,7 +56,7 @@ angular.module('copayApp.controllers').controller('preferencesDeleteWalletContro
notification.success(gettextCatalog.getString('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', { notification.success(gettextCatalog.getString('Success'), gettextCatalog.getString('The wallet "{{walletName}}" was deleted', {
walletName: walletName walletName: walletName
})); }));
go.walletHome(); applicationService.restart();
} }
}); });
}; };