lnbits-legend/lnbits/static/js/index.js

37 lines
736 B
JavaScript
Raw Normal View History

new Vue({
el: '#vue',
mixins: [windowMixin],
data: function () {
return {
2020-05-03 13:55:17 -03:00
disclaimerDialog: {
2020-04-20 15:27:02 +01:00
show: false,
data: {},
description: ''
2020-05-03 13:55:17 -03:00
},
walletName: ''
2020-05-03 13:55:17 -03:00
}
},
computed: {
formatDescription() {
return LNbits.utils.convertMarkdown(this.description)
}
},
methods: {
createWallet: function () {
LNbits.api.createAccount(this.walletName).then(res => {
window.location = '/wallet?usr=' + res.data.user + '&wal=' + res.data.id
})
2020-03-10 23:12:22 +01:00
},
processing: function () {
this.$q.notify({
timeout: 0,
message: 'Processing...',
icon: null
2020-05-03 13:55:17 -03:00
})
}
},
created() {
this.description = SITE_DESCRIPTION
}
2020-05-03 13:55:17 -03:00
})