mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-25 23:21:21 +01:00
* [FEAT] cleanup GET /wallet endpoint, add wallet api route this removes the functionalitiy to create accounts and wallets via the GET /wallet endpoint in generic.py it add endpoints inside the api.py for it and the frontend is modified to use the api endpoints this also simplifies for the `feat/login` for the route. * remove stale generic tests and add api tests * bug wrong endpoint create account * vlad nitpick * added checkif deleted is 404 * reload after renaming wallet * another iteration with vlad * create new wallet if it none exist * fix delete refresh * formatting
27 lines
541 B
JavaScript
27 lines
541 B
JavaScript
new Vue({
|
|
el: '#vue',
|
|
mixins: [windowMixin],
|
|
data: function () {
|
|
return {
|
|
disclaimerDialog: {
|
|
show: false,
|
|
data: {}
|
|
},
|
|
walletName: ''
|
|
}
|
|
},
|
|
methods: {
|
|
createWallet: function () {
|
|
LNbits.api.createAccount(this.walletName).then(res => {
|
|
window.location = '/wallet?usr=' + res.data.user + '&wal=' + res.data.id
|
|
})
|
|
},
|
|
processing: function () {
|
|
this.$q.notify({
|
|
timeout: 0,
|
|
message: 'Processing...',
|
|
icon: null
|
|
})
|
|
}
|
|
}
|
|
})
|