feat: update to lnbits 1.0.0 (#27)
* feat: update to lnbits 1.0.0 * fix select wallet * fix splits * fix: types, postgres errors with cache --------- Co-authored-by: Tiago Vasconcelos <talvasconcelos@gmail.com>
This commit is contained in:
parent
32bf4ae1d6
commit
5042d40af6
11 changed files with 1300 additions and 1218 deletions
|
|
@ -1,7 +1,3 @@
|
|||
/* globals Quasar, Vue, _, VueQrcode, windowMixin, LNbits, LOCALE */
|
||||
|
||||
Vue.component(VueQrcode.name, VueQrcode)
|
||||
|
||||
function hashTargets(targets) {
|
||||
return targets
|
||||
.filter(isTargetComplete)
|
||||
|
|
@ -17,9 +13,14 @@ function isTargetComplete(target) {
|
|||
)
|
||||
}
|
||||
|
||||
new Vue({
|
||||
window.app = Vue.createApp({
|
||||
el: '#vue',
|
||||
mixins: [windowMixin],
|
||||
watch: {
|
||||
selectedWallet() {
|
||||
this.getTargets()
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selectedWallet: null,
|
||||
|
|
@ -38,7 +39,7 @@ new Vue({
|
|||
return this.deleteTargets()
|
||||
}
|
||||
this.targets.splice(index, 1)
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
message: 'Removed item. You must click to save manually.',
|
||||
timeout: 500
|
||||
})
|
||||
|
|
@ -75,7 +76,7 @@ new Vue({
|
|||
}
|
||||
)
|
||||
.then(response => {
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
message: 'Split payments targets set.',
|
||||
timeout: 700
|
||||
})
|
||||
|
|
@ -96,7 +97,7 @@ new Vue({
|
|||
this.selectedWallet.adminkey
|
||||
)
|
||||
.then(response => {
|
||||
this.$q.notify({
|
||||
Quasar.Notify.create({
|
||||
message: 'Split payments targets deleted.',
|
||||
timeout: 700
|
||||
})
|
||||
|
|
@ -109,6 +110,5 @@ new Vue({
|
|||
},
|
||||
created() {
|
||||
this.selectedWallet = this.g.user.wallets[0]
|
||||
this.getTargets()
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue