Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix some view issues.
James Cole495ecc9f3db1
diff --git a/resources/assets/v3/js/pages/dashboard/boxes.js b/resources/assets/v3/js/pages/dashboard/boxes.jsindex bc25c4e167..7535240da2 100644--- a/resources/assets/v3/js/pages/dashboard/boxes.js+++ b/resources/assets/v3/js/pages/dashboard/boxes.js@@ -97,11 +97,8 @@ export default () => ({continue;}let key = current.key;- // console.log('NOT PRIMARY CURRENCY');if (key.startsWith("balance-in-")) {- this.balanceBox.amounts.push(- formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code),- );+ this.balanceBox.amounts.push(formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code),);continue;}// spent info is used in subtitle:@@ -111,9 +108,7 @@ export default () => ({subtitles[current.currency_code] = "";}// append the amount spent.- subtitles[current.currency_code] =- subtitles[current.currency_code] +- formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code);+ subtitles[current.currency_code] = subtitles[current.currency_code] + formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code);continue;}// earned info is used in subtitle:@@ -123,17 +118,12 @@ export default () => ({subtitles[current.currency_code] = "";}// prepend the amount earned.- subtitles[current.currency_code] =- formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code) +- " + " +- subtitles[current.currency_code];+ subtitles[current.currency_code] = formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code) + " + " + subtitles[current.currency_code];continue;}if (key.startsWith("bills-unpaid-in-")) {- this.billBox.unpaid.push(- formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code),- );+ this.billBox.unpaid.push(formatMoney(this.anonymous ? 0 : current.monetary_value, current.currency_code),);continue;}if (key.startsWith("bills-paid-in-")) {diff --git a/resources/views/components/dashboard/boxes.blade.php b/resources/views/components/dashboard/boxes.blade.phpindex f1610ae90b..7da8da8c10 100644--- a/resources/views/components/dashboard/boxes.blade.php+++ b/resources/views/components/dashboard/boxes.blade.php@@ -51,12 +51,14 @@<!--begin::Small Box Widget 2--><div class="small-box text-bg-sky"><div class="inner">+ <template x-if="0 === billBox.unpaid.length">+ <h4 class="hover-expand">—</h4>+ </template><template x-if="billBox.unpaid.length > 0"><h4 class="hover-expand"><template x-for="(amount, index) in billBox.unpaid" :key="index"><span>- <span x-text="amount"></span><span- :class="{ 'invisible': (billBox.unpaid.length == index+1) }">, </span>+ <span x-text="amount"></span><span :class="{ 'invisible': (billBox.unpaid.length == index+1) }">, </span></span></template></h4>@@ -73,7 +75,7 @@href="{{ route('subscriptions.index') }}">{{ __('firefly.bills_to_pay') }}</a></p></template><template x-if="0 === billBox.unpaid.length && !loading">- <p class="d-none d-sm-block"><em>{{ __('firefly.no_waiting') }}</em></p>+ <p class="d-none d-sm-block"><em>{{ __('firefly.no_waiting') }}</em></p></template></div><span class="small-box-icon d-none d-lg-block d-xl-block d-xxl-block">