Added refresh time to gerty settings
This commit is contained in:
@@ -164,6 +164,15 @@
|
||||
<q-tooltip>Used for getting onchain/ln stats</q-tooltip>
|
||||
</q-input>
|
||||
|
||||
<q-input
|
||||
filled
|
||||
dense
|
||||
v-model.trim="formDialog.data.refresh_time"
|
||||
label="Refresh time in seconds"
|
||||
>
|
||||
<q-tooltip>The amount of time in seconds between screen updates</q-tooltip>
|
||||
</q-input>
|
||||
|
||||
<p>Use the toggles below to control what your Gerty will display</p>
|
||||
|
||||
<q-expansion-item
|
||||
@@ -608,6 +617,7 @@
|
||||
},
|
||||
lnbits_wallets: [],
|
||||
mempool_endpoint: "https://mempool.space",
|
||||
refresh_time: 300,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -621,6 +631,7 @@
|
||||
this.formDialog.data = {
|
||||
lnbits_wallets: [],
|
||||
mempool_endpoint: "https://mempool.space",
|
||||
refresh_time: 300,
|
||||
display_preferences: {},
|
||||
}
|
||||
},
|
||||
@@ -646,11 +657,10 @@
|
||||
this.formDialog.data.wallet = gerty.wallet
|
||||
this.formDialog.data.lnbits_wallets = JSON.parse(gerty.lnbits_wallets)
|
||||
this.formDialog.data.exchange = gerty.exchange,
|
||||
this.formDialog.data.mempool_endpoint = gerty.mempool_endpoint,
|
||||
this.formDialog.data.display_preferences = JSON.parse(gerty.display_preferences),
|
||||
this.formDialog.show = true
|
||||
|
||||
console.log('updateformDialog', this.formDialog.data)
|
||||
this.formDialog.data.mempool_endpoint = gerty.mempool_endpoint,
|
||||
this.formDialog.data.refresh_time = gerty.refresh_time,
|
||||
this.formDialog.data.display_preferences = JSON.parse(gerty.display_preferences),
|
||||
this.formDialog.show = true
|
||||
},
|
||||
sendFormDataGerty: function () {
|
||||
if (this.formDialog.data.id) {
|
||||
@@ -673,6 +683,7 @@
|
||||
lnbits_wallets: JSON.stringify(this.formDialog.data.lnbits_wallets),
|
||||
exchange: this.formDialog.data.exchange,
|
||||
mempool_endpoint: this.formDialog.data.mempool_endpoint,
|
||||
refresh_time: this.formDialog.data.refresh_time,
|
||||
display_preferences: JSON.stringify(this.formDialog.data.display_preferences)
|
||||
}
|
||||
console.log('createGerty', data)
|
||||
|
||||
Reference in New Issue
Block a user