feat: add negative topups (#2835)
* feat: add negative topups * remove topup dialog --------- Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
@@ -484,7 +484,7 @@ window.app.component('lnbits-dynamic-chips', {
|
||||
window.app.component('lnbits-update-balance', {
|
||||
template: '#lnbits-update-balance',
|
||||
mixins: [window.windowMixin],
|
||||
props: ['wallet_id'],
|
||||
props: ['wallet_id', 'credit-value'],
|
||||
computed: {
|
||||
denomination() {
|
||||
return LNBITS_DENOMINATION
|
||||
@@ -514,11 +514,12 @@ window.app.component('lnbits-update-balance', {
|
||||
credit = parseInt(credit)
|
||||
Quasar.Notify.create({
|
||||
type: 'positive',
|
||||
message: this.$t('wallet_topup_ok', {
|
||||
message: this.$t('credit_ok', {
|
||||
amount: credit
|
||||
}),
|
||||
icon: null
|
||||
})
|
||||
this.$emit('credit-value', credit)
|
||||
return credit
|
||||
})
|
||||
.catch(LNbits.utils.notifyApiError)
|
||||
|
||||
Reference in New Issue
Block a user