Fix configuration page errors (#24)
This commit is contained in:
parent
65da39e0b4
commit
2b322863ca
2 changed files with 2 additions and 6 deletions
|
|
@ -30,11 +30,7 @@ window.app = Vue.createApp({
|
||||||
fetchConfig() {
|
fetchConfig() {
|
||||||
this.entries = []
|
this.entries = []
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request(
|
.request('GET', '/nwcprovider/api/v1/config')
|
||||||
'GET',
|
|
||||||
'/nwcprovider/api/v1/config',
|
|
||||||
this.g.user.wallets[0].adminkey
|
|
||||||
)
|
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.config = response.data
|
this.config = response.data
|
||||||
console.log('Config fetched:', this.config)
|
console.log('Config fetched:', this.config)
|
||||||
|
|
@ -53,7 +49,7 @@ window.app = Vue.createApp({
|
||||||
const response = await LNbits.api.request(
|
const response = await LNbits.api.request(
|
||||||
'POST',
|
'POST',
|
||||||
'/nwcprovider/api/v1/config',
|
'/nwcprovider/api/v1/config',
|
||||||
this.g.user.wallets[0].adminkey,
|
null,
|
||||||
data
|
data
|
||||||
)
|
)
|
||||||
Quasar.Notify.create({
|
Quasar.Notify.create({
|
||||||
|
|
|
||||||
0
static/routes.json
Normal file
0
static/routes.json
Normal file
Loading…
Add table
Add a link
Reference in a new issue