Fix so that overall distances are showed with only one decimal figure
This commit is contained in:
parent
aeb2b16634
commit
5a886c3481
@ -115,7 +115,7 @@
|
||||
<template x-if="!$store.state.data.otherUser.isHidden">
|
||||
<td x-text="otherUser.name"></td>
|
||||
</template>
|
||||
<td x-text="otherUser.totalKilometers"></td>
|
||||
<td x-text="otherUser.totalKilometers.toFixed(1)"></td>
|
||||
<td x-text="otherUser.earliestActivity"></td>
|
||||
<td x-text="otherUser.latestActivity"></td>
|
||||
</tr>
|
||||
@ -191,9 +191,9 @@
|
||||
<tr>
|
||||
<td x-text="activity.date"></td>
|
||||
<td x-text="activity.description"></td>
|
||||
<td x-text="`${activity.numberOfUnits.toFixed(1)} ${activity.activityType.unit}`"></td>
|
||||
<td x-text="`${activity.numberOfUnits} ${activity.activityType.unit}`"></td>
|
||||
<template x-if="$store.state.data.unitConversionNecessary">
|
||||
<td x-text="`${(activity.numberOfUnits * activity.activityType.conversionFactor).toFixed(1)} km`"></td>
|
||||
<td x-text="`${(activity.numberOfUnits * activity.activityType.conversionFactor)} km`"></td>
|
||||
</template>
|
||||
<td><button x-on:click="$store.state.deleteActivity(activity)">Fjern</button></td>
|
||||
</tr>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user