feat(vue): move confirmDialog to LNbits.utils so we can reuse the styling
This commit is contained in:
@@ -474,17 +474,9 @@
|
||||
var self = this;
|
||||
var indexer = _.findWhere(this.indexers, {id: indexerId});
|
||||
|
||||
this.$q.dialog({
|
||||
message: 'Are you sure you want to delete this Indexer link?',
|
||||
ok: {
|
||||
flat: true,
|
||||
color: 'orange'
|
||||
},
|
||||
cancel: {
|
||||
flat: true,
|
||||
color: 'grey'
|
||||
}
|
||||
}).onOk(function () {
|
||||
LNbits.utils.confirmDialog(
|
||||
'Are you sure you want to delete this Indexer link?'
|
||||
).onOk(function () {
|
||||
LNbits.api.request(
|
||||
'DELETE',
|
||||
'/diagonalley/api/v1/diagonalley/indexers/' + indexerId,
|
||||
@@ -538,17 +530,9 @@
|
||||
var self = this;
|
||||
var order = _.findWhere(this.orders, {id: orderId});
|
||||
|
||||
this.$q.dialog({
|
||||
message: 'Are you sure you want to delete this order link?',
|
||||
ok: {
|
||||
flat: true,
|
||||
color: 'orange'
|
||||
},
|
||||
cancel: {
|
||||
flat: true,
|
||||
color: 'grey'
|
||||
}
|
||||
}).onOk(function () {
|
||||
LNbits.utils.confirmDialog(
|
||||
'Are you sure you want to delete this order link?'
|
||||
).onOk(function () {
|
||||
LNbits.api.request(
|
||||
'DELETE',
|
||||
'/diagonalley/api/v1/diagonalley/orders/' + orderId,
|
||||
@@ -646,17 +630,9 @@
|
||||
var self = this;
|
||||
var product = _.findWhere(this.products, {id: productId});
|
||||
|
||||
this.$q.dialog({
|
||||
message: 'Are you sure you want to delete this products link?',
|
||||
ok: {
|
||||
flat: true,
|
||||
color: 'orange'
|
||||
},
|
||||
cancel: {
|
||||
flat: true,
|
||||
color: 'grey'
|
||||
}
|
||||
}).onOk(function () {
|
||||
LNbits.utils.confirmDialog(
|
||||
'Are you sure you want to delete this products link?'
|
||||
).onOk(function () {
|
||||
LNbits.api.request(
|
||||
'DELETE',
|
||||
'/diagonalley/api/v1/diagonalley/products/' + productId,
|
||||
|
||||
Reference in New Issue
Block a user