Compare commits
2 Commits
d517a0e7fe
...
5a886c3481
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a886c3481 | ||
|
|
aeb2b16634 |
@ -107,8 +107,15 @@
|
||||
<template x-if="$store.state.data.otherUsers.length > 0">
|
||||
<template x-for="otherUser in $store.state.data.otherUsers">
|
||||
<tr>
|
||||
<template x-if="$store.state.data.otherUser.isHidden">
|
||||
<td>
|
||||
<i x-text="otherUser.name"></i>
|
||||
</td>
|
||||
</template>
|
||||
<template x-if="!$store.state.data.otherUser.isHidden">
|
||||
<td x-text="otherUser.name"></td>
|
||||
<td x-text="otherUser.totalKilometers"></td>
|
||||
</template>
|
||||
<td x-text="otherUser.totalKilometers.toFixed(1)"></td>
|
||||
<td x-text="otherUser.earliestActivity"></td>
|
||||
<td x-text="otherUser.latestActivity"></td>
|
||||
</tr>
|
||||
@ -184,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