Added dashboards
This commit is contained in:
parent
54c1757423
commit
8e6eb63c9e
2 changed files with 11 additions and 5 deletions
|
|
@ -294,6 +294,7 @@
|
||||||
dense
|
dense
|
||||||
v-model.trim="formDialog.data.mempool_endpoint"
|
v-model.trim="formDialog.data.mempool_endpoint"
|
||||||
label="Mempool link"
|
label="Mempool link"
|
||||||
|
class="q-pb-sm"
|
||||||
>
|
>
|
||||||
</q-input>
|
</q-input>
|
||||||
<q-input
|
<q-input
|
||||||
|
|
@ -302,15 +303,18 @@
|
||||||
dense
|
dense
|
||||||
v-model.trim="formDialog.data.refresh_time"
|
v-model.trim="formDialog.data.refresh_time"
|
||||||
label="Refresh time in seconds"
|
label="Refresh time in seconds"
|
||||||
|
class="q-pb-md"
|
||||||
>
|
>
|
||||||
<q-tooltip
|
<q-tooltip
|
||||||
>The amount of time in seconds between screen updates
|
>The amount of time in seconds between screen updates
|
||||||
</q-tooltip>
|
</q-tooltip>
|
||||||
</q-input>
|
</q-input>
|
||||||
<br/>
|
<q-separator class="q-mb-md" v-if="toggleStates.advanced"></q-separator>
|
||||||
<p v-if="toggleStates.advanced">Gerty Device Dashboards (for Gerty <a target="_blank" href="https://shop.lnbits.com/product/gerty-a-bitcoin-assistant">devices</a>):</p>
|
<p class="q-pl-sm q-mb-xs" v-if="toggleStates.advanced">Gerty Device Dashboards (for Gerty <a target="_blank" href="https://shop.lnbits.com/product/gerty-a-bitcoin-assistant">devices</a>):</p>
|
||||||
<br/>
|
<q-checkbox class="q-pl-md" v-if="toggleStates.advanced" size="xs" v-model="formDialog.data.display_preferences.dashboard" val="xs" label="LNbits"></q-checkbox>
|
||||||
<q-checkbox size="xs" v-model="shape" val="xs" label=""></q-checkbox>
|
<q-checkbox class="q-pl-md" v-if="toggleStates.advanced" size="xs" v-model="formDialog.data.display_preferences.dashboard_onchain" val="xs" label="Onchain"></q-checkbox>
|
||||||
|
<q-checkbox class="q-pl-md" v-if="toggleStates.advanced" size="xs" v-model="formDialog.data.display_preferences.dashboard_mining" val="xs" label="Mining"></q-checkbox>
|
||||||
|
<q-checkbox class="q-pl-md" v-if="toggleStates.advanced" size="xs" v-model="formDialog.data.display_preferences.lightning_dashboard" val="xs" label="Lightning"></q-checkbox>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -662,6 +666,7 @@
|
||||||
(this.formDialog.show = true)
|
(this.formDialog.show = true)
|
||||||
},
|
},
|
||||||
sendFormDataGerty: function () {
|
sendFormDataGerty: function () {
|
||||||
|
console.log(this.formDialog.data)
|
||||||
if (this.formDialog.data.id) {
|
if (this.formDialog.data.id) {
|
||||||
this.updateGerty(
|
this.updateGerty(
|
||||||
this.g.user.wallets[0].adminkey,
|
this.g.user.wallets[0].adminkey,
|
||||||
|
|
@ -688,7 +693,7 @@
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
var self = this
|
var self = this
|
||||||
|
console.log(data)
|
||||||
LNbits.api
|
LNbits.api
|
||||||
.request(
|
.request(
|
||||||
'POST',
|
'POST',
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ async def api_link_create_or_update(
|
||||||
wallet: WalletTypeInfo = Depends(get_key_type),
|
wallet: WalletTypeInfo = Depends(get_key_type),
|
||||||
gerty_id: str = Query(None),
|
gerty_id: str = Query(None),
|
||||||
):
|
):
|
||||||
|
logger.debug(data)
|
||||||
if gerty_id:
|
if gerty_id:
|
||||||
gerty = await get_gerty(gerty_id)
|
gerty = await get_gerty(gerty_id)
|
||||||
if not gerty:
|
if not gerty:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue