feat(vue): move confirmDialog to LNbits.utils so we can reuse the styling
This commit is contained in:
@@ -87,6 +87,19 @@ var LNbits = {
|
||||
}
|
||||
},
|
||||
utils: {
|
||||
confirmDialog: function (msg) {
|
||||
return Quasar.plugins.Dialog.create({
|
||||
message: msg,
|
||||
ok: {
|
||||
flat: true,
|
||||
color: 'orange'
|
||||
},
|
||||
cancel: {
|
||||
flat: true,
|
||||
color: 'grey'
|
||||
}
|
||||
});
|
||||
},
|
||||
formatCurrency: function (value, currency) {
|
||||
return new Intl.NumberFormat(LOCALE, {style: 'currency', currency: currency}).format(value);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user