chore: play

This commit is contained in:
Vlad Stan 2024-12-04 19:52:05 +02:00
parent 3b4f2686b4
commit a0f936ceff
4 changed files with 18 additions and 7 deletions

View File

@ -17,7 +17,7 @@
v-slot="{ item, index }"
class="hide-scrollbar"
>
<!-- :class="item.id === this.g.wallet.id ? 'bg-dark text-white': ''" -->
<!-- :class="item.id === this.g.wallet.id ? 'bg-dark text-white': ''" -->
<q-card
class="q-mr-md cursor-pointer"
color="positive"
@ -70,10 +70,6 @@
</div>
</div>
</q-card-section>
<!-- <q-card-section v-if="item.id === this.g.wallet.id">
</q-card-section> -->
<q-card-actions class="q-pa-none">
<div class="row full-width">

File diff suppressed because one or more lines are too long

View File

@ -26,6 +26,7 @@ window.app.component('lnbits-wallet-list', {
props: ['balance'],
data: function () {
return {
vertical: true,
user: null,
activeWallet: null,
balance: 0,
@ -59,6 +60,8 @@ window.app.component('lnbits-wallet-list', {
this.activeWallet = LNbits.map.wallet(window.wallet)
}
document.addEventListener('updateWalletBalance', this.updateWalletBalance)
const urlParams = new URLSearchParams(window.location.search);
this.vertical=!urlParams.get('vertical')
}
})

View File

@ -4,7 +4,19 @@
dense
class="lnbits-drawer__q-list"
>
<q-item-label header v-text="$t('wallets')"></q-item-label>
<q-item :href="activeWallet.url+'&vertical='+vertical" class="cursor-pointer">
<q-item-label header v-text="$t('wallets')" class="q-pl-none">
</q-item-label>
<!-- <q-item-section class="">
<q-icon name="vertical_split" />
</q-item-section> -->
<q-item-section class="q-mr-md">
<q-icon name="pivot_table_chart" />
</q-item-section>
</q-item>
<q-item
v-for="wallet in wallets"
:key="wallet.id"