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:
dni ⚡
2024-12-17 21:06:58 +01:00
committed by GitHub
co-authored by Vlad Stan
parent 368da935db
commit 37187bfc2c
20 changed files with 121 additions and 145 deletions
+3 -2
View File
@@ -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)