feat(vue): move confirmDialog to LNbits.utils so we can reuse the styling

This commit is contained in:
Eneko Illarramendi
2020-04-23 07:32:45 +02:00
parent 34e6d2a7bb
commit e461e34fc0
7 changed files with 39 additions and 78 deletions
+5 -1
View File
@@ -307,7 +307,11 @@ new Vue({
});
},
deleteWallet: function (walletId, user) {
LNbits.href.deleteWallet(walletId, user);
LNbits.utils.confirmDialog(
'Are you sure you want to delete this wallet?'
).onOk(function () {
LNbits.href.deleteWallet(walletId, user);
});
},
fetchPayments: function (checkPending) {
var self = this;