mirror of https://github.com/BTCPrivate/copay.git
add confirmation message before deleting
This commit is contained in:
parent
1d6e4b897f
commit
e7847208f7
|
@ -141,8 +141,9 @@
|
||||||
<div ng-show="!$root.wallet.publicKeyRing.isComplete()">
|
<div ng-show="!$root.wallet.publicKeyRing.isComplete()">
|
||||||
<a ng-click="dowloadBackup()">Save seed backup</a>
|
<a ng-click="dowloadBackup()">Save seed backup</a>
|
||||||
|
|
|
|
||||||
<a ng-click="deleteWallet()">Delete wallet</a>
|
|
||||||
</div>
|
</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"
|
<button class="button primary radius right"
|
||||||
ng-click="backup()"
|
ng-click="backup()"
|
||||||
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"
|
ng-show="!$root.wallet.publicKeyRing.isBackupReady()"
|
||||||
|
|
|
@ -99,7 +99,6 @@ angular.module('copayApp.controllers').controller('HeaderController',
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.deleteWallet = function() {
|
$scope.deleteWallet = function() {
|
||||||
alert('delete');
|
|
||||||
var w = $rootScope.wallet;
|
var w = $rootScope.wallet;
|
||||||
w.disconnect();
|
w.disconnect();
|
||||||
walletFactory.delete(w.id, function() {
|
walletFactory.delete(w.id, function() {
|
||||||
|
|
Loading…
Reference in New Issue