forked from jsnbuchanan/crowd-funder-for-time-pwa
format total numbers better
This commit is contained in:
@@ -386,11 +386,10 @@
|
||||
>
|
||||
<!-- just show the hours, or alternatively whatever is first -->
|
||||
<span v-if="givenTotalHours() > 0">
|
||||
{{ givenTotalHours() }} {{ libsUtil.UNIT_SHORT["HUR"] }}
|
||||
{{ libsUtil.formattedAmount(givenTotalHours(), "HUR") }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ givesTotalsByUnit[0].amount }}
|
||||
{{ libsUtil.UNIT_SHORT[givesTotalsByUnit[0].unit] }}
|
||||
{{ libsUtil.formattedAmount(givesTotalsByUnit[0].amount, givesTotalsByUnit[0].unit) }}
|
||||
</span>
|
||||
<span v-if="givesTotalsByUnit.length > 1">...</span>
|
||||
<span>
|
||||
@@ -411,7 +410,7 @@
|
||||
:icon="libsUtil.iconForUnitCode(total.unit)"
|
||||
class="fa-fw text-slate-400 mr-1"
|
||||
/>
|
||||
{{ total.amount }} {{ libsUtil.UNIT_LONG[total.unit] }}
|
||||
{{ libsUtil.formattedAmount(total.amount, total.unit) }}
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user