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
+13
View File
@@ -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);
},