mirror of
https://github.com/frappe/books.git
synced 2025-01-11 10:38:14 +00:00
fix: period selection error, sync issue, no transaction message
This commit is contained in:
parent
a51c4bac64
commit
a708a14881
@ -57,12 +57,18 @@
|
|||||||
<div class="relative" style="top: -50%">
|
<div class="relative" style="top: -50%">
|
||||||
<div class="text-base text-center font-semibold grid justify-center">
|
<div class="text-base text-center font-semibold grid justify-center">
|
||||||
<p class="text-xs text-gray-600 w-32">
|
<p class="text-xs text-gray-600 w-32">
|
||||||
{{ active !== null ? sectors[active].label : totalLabel }}
|
{{
|
||||||
|
active !== null && sectors.length !== 0
|
||||||
|
? sectors[active].label
|
||||||
|
: totalLabel
|
||||||
|
}}
|
||||||
</p>
|
</p>
|
||||||
<p class="w-32">
|
<p class="w-32">
|
||||||
{{
|
{{
|
||||||
valueFormatter(
|
valueFormatter(
|
||||||
active !== null ? sectors[active].value : totalValue,
|
active !== null && sectors.length !== 0
|
||||||
|
? sectors[active].value
|
||||||
|
: totalValue,
|
||||||
'Currency'
|
'Currency'
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="expenses.length === 0" class="flex-1 w-full h-full flex-center">
|
<div v-if="expenses.length === 0" class="flex-1 w-full h-full flex-center">
|
||||||
<span class="text-base text-gray-600">
|
<span class="text-base text-gray-600">
|
||||||
{{ _('No transactions yet') }}
|
{{ _('No expenses in this period') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -63,11 +63,13 @@ export default {
|
|||||||
active: null,
|
active: null,
|
||||||
expenses: [],
|
expenses: [],
|
||||||
}),
|
}),
|
||||||
mounted() {
|
|
||||||
this.setData();
|
|
||||||
},
|
|
||||||
watch: {
|
watch: {
|
||||||
period: 'render',
|
period(new_, old) {
|
||||||
|
this.setData();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
activated() {
|
||||||
|
this.setData();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
totalExpense() {
|
totalExpense() {
|
||||||
|
Loading…
Reference in New Issue
Block a user