feat: remove selectWallet and use path params instead of url params (#3591)
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
<q-page class="q-px-md q-py-lg" :class="{'q-px-lg': $q.screen.gt.xs}">
|
||||
<lnbits-wallet-new></lnbits-wallet-new>
|
||||
<lnbits-header-wallets></lnbits-header-wallets>
|
||||
<router-view v-if="isVueRoute"></router-view>
|
||||
<router-view v-if="isVueRoute" :key="$route.path"></router-view>
|
||||
<!-- FastAPI Content -->
|
||||
<div v-else>{% block page %}{% endblock %}</div>
|
||||
</q-page>
|
||||
|
||||
@@ -48,7 +48,7 @@
|
||||
)"
|
||||
:key="wallet.id"
|
||||
clickable
|
||||
@click="selectWallet(wallet)"
|
||||
@click="$router.push('/wallet/' + wallet.id)"
|
||||
class="wallet-list-card"
|
||||
:class="{
|
||||
'active-wallet-card': g.wallet && g.wallet.id === wallet.id
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
:key="walletRec.id"
|
||||
clickable
|
||||
:active="g.wallet && g.wallet.id === walletRec.id"
|
||||
@click="selectWallet(walletRec)"
|
||||
@click="$router.push('/wallet/' + walletRec.id)"
|
||||
>
|
||||
<q-item-section side>
|
||||
<q-avatar
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
<q-card class="wallet-card">
|
||||
<q-card-section>
|
||||
<lnbits-payment-list
|
||||
:expand-details="expandDetails"
|
||||
:wallet="g.wallet"
|
||||
:payment-filter="paymentFilter"
|
||||
></lnbits-payment-list>
|
||||
</q-card-section>
|
||||
|
||||
Reference in New Issue
Block a user