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
@@ -202,17 +202,9 @@
var self = this;
var amilk = _.findWhere(this.amilks, {id: amilkId});
this.$q.dialog({
message: 'Are you sure you want to delete this AMilk link?',
ok: {
flat: true,
color: 'orange'
},
cancel: {
flat: true,
color: 'grey'
}
}).onOk(function () {
LNbits.utils.confirmDialog(
'Are you sure you want to delete this AMilk link?'
).onOk(function () {
LNbits.api.request(
'DELETE',
'/amilk/api/v1/amilks/' + amilkId,