refactor: lnbits-wallet-charts and clean up paymentFiltering (#3526)

This commit is contained in:
dni ⚡
2025-11-20 15:01:37 +01:00
committed by GitHub
parent 3e0d0d9896
commit faac56c14c
12 changed files with 314 additions and 357 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ include('components/lnbits-language-dropdown.vue') %} {%
include('components/lnbits-payment-list.vue') %} {%
include('components/lnbits-wallet-new.vue') %} {%
include('components/lnbits-wallet-api-docs.vue') %} {%
include('components/lnbits-wallet-share.vue') %}
include('components/lnbits-wallet-share.vue') %} {%
include('components/lnbits-wallet-charts.vue') %}
<template id="lnbits-manage">
<q-list v-if="g.user" dense class="lnbits-drawer__q-list">
@@ -171,7 +171,7 @@
:row-key="paymentTableRowKey"
:columns="paymentsTable.columns"
:no-data-label="$t('no_transactions')"
:filter="paymentsTable.filter"
:filter="paymentFilter"
:loading="paymentsTable.loading"
:hide-header="g.mobileSimple"
:hide-bottom="g.mobileSimple"
@@ -0,0 +1,28 @@
<template id="lnbits-wallet-charts">
<div
:style="!chartDataPointCount ? 'display:none;' : ''"
class="col-12 col-md-5 q-gutter-y-md"
>
<q-card :style="chartConfig.showBalanceChart ? '' : 'display: none;'">
<q-card-section class="q-pa-none">
<div style="height: 200px" class="q-pa-sm">
<canvas ref="walletBalanceChart"></canvas>
</div>
</q-card-section>
</q-card>
<q-card :style="chartConfig.showBalanceInOutChart ? '' : 'display: none;'">
<q-card-section class="q-pa-none">
<div style="height: 200px" class="q-pa-sm">
<canvas ref="walletBalanceInOut"></canvas>
</div>
</q-card-section>
</q-card>
<q-card :style="chartConfig.showPaymentInOutChart ? '' : 'display: none;'">
<q-card-section class="q-pa-none">
<div style="height: 200px" class="q-pa-sm">
<canvas ref="walletPaymentInOut"></canvas>
</div>
</q-card-section>
</q-card>
</div>
</template>