some wallet ui fixes

This commit is contained in:
dni ⚡
2024-10-17 10:36:53 +02:00
parent c001d50553
commit f8d04d0637
4 changed files with 7 additions and 9 deletions
+5 -7
View File
@@ -16,14 +16,14 @@
<q-item dense class="q-pa-none"> <q-item dense class="q-pa-none">
<q-item-section> <q-item-section>
<q-item-label> <q-item-label>
<strong>Wallet ID: </strong><em>{{ wallet.id }}</em> <strong>Wallet ID: </strong><em v-text="wallet.id"></em>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
<q-item-section side> <q-item-section side>
<q-icon <q-icon
name="content_copy" name="content_copy"
class="cursor-pointer" class="cursor-pointer"
@click="copyText('{{ wallet.id }}')" @click="copyText(wallet.id)"
></q-icon> ></q-icon>
</q-item-section> </q-item-section>
</q-item> </q-item>
@@ -32,7 +32,7 @@
<q-item-label> <q-item-label>
<strong>Admin key: </strong <strong>Admin key: </strong
><em ><em
v-text="adminkeyHidden ? '****************' : `{{ wallet.adminkey }}`" v-text="adminkeyHidden ? '****************' : wallet.adminkey"
></em> ></em>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
@@ -55,9 +55,7 @@
<q-item-section> <q-item-section>
<q-item-label> <q-item-label>
<strong>Invoice/read key: </strong <strong>Invoice/read key: </strong
><em ><em v-text="inkeyHidden ? '****************' : wallet.inkey"></em>
v-text="inkeyHidden ? '****************' : `{{ wallet.inkey }}`"
></em>
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
<q-item-section side> <q-item-section side>
@@ -70,7 +68,7 @@
<q-icon <q-icon
name="content_copy" name="content_copy"
class="cursor-pointer q-ml-sm" class="cursor-pointer q-ml-sm"
@click="copyText('{{ wallet.inkey }}')" @click="copyText(wallet.inkey)"
></q-icon> ></q-icon>
</div> </div>
</q-item-section> </q-item-section>
-1
View File
@@ -38,7 +38,6 @@
<strong v-text="formattedBalance"></strong> <strong v-text="formattedBalance"></strong>
<small>{{LNBITS_DENOMINATION}}</small> <small>{{LNBITS_DENOMINATION}}</small>
<lnbits-update-balance <lnbits-update-balance
v-if="'{{user.super_user}}' == 'True'"
:wallet_id="this.g.wallet.id" :wallet_id="this.g.wallet.id"
flat flat
:callback="updateBalanceCallback" :callback="updateBalanceCallback"
+1 -1
View File
@@ -444,7 +444,7 @@ window.app.component('lnbits-update-balance', {
return LNBITS_DENOMINATION return LNBITS_DENOMINATION
}, },
admin() { admin() {
return this.g.user.admin return user.super_user
} }
}, },
data: function () { data: function () {
+1
View File
@@ -5,6 +5,7 @@ window.app = Vue.createApp({
return { return {
updatePayments: false, updatePayments: false,
origin: window.location.origin, origin: window.location.origin,
wallet: LNbits.map.wallet(window.wallet),
user: LNbits.map.user(window.user), user: LNbits.map.user(window.user),
receive: { receive: {
show: false, show: false,