add confirmation message before deleting

This commit is contained in:
Manuel Araoz 2014-07-21 16:31:46 -03:00
parent 1d6e4b897f
commit e7847208f7
2 changed files with 2 additions and 2 deletions

View File

@ -141,8 +141,9 @@
<div ng-show="!$root.wallet.publicKeyRing.isComplete()">
<a ng-click="dowloadBackup()">Save seed backup</a>
|
<a ng-click="deleteWallet()">Delete wallet</a>
</div>
<a ng-really-click="deleteWallet()"
ng-really-message="Are you sure to delete this wallet from this computer?">Delete wallet</a>
<button class="button primary radius right"
ng-click="backup()"
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"

View File

@ -99,7 +99,6 @@ angular.module('copayApp.controllers').controller('HeaderController',
};
$scope.deleteWallet = function() {
alert('delete');
var w = $rootScope.wallet;
w.disconnect();
walletFactory.delete(w.id, function() {