parent
69db350461
commit
c8d462100a
@ -139,8 +139,12 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody class="text-gray-900 dark:text-gray-50">
|
<tbody class="text-gray-900 dark:text-gray-50">
|
||||||
<tr v-for="s in state.scans" :key="s.id">
|
<tr v-for="s in state.scans" :key="s.id">
|
||||||
<td class="px-4 py-3">s.distance</td>
|
<td class="px-4 py-3">
|
||||||
<td class="px-4 py-3">s.time</td>
|
<span v-text="s.distance"></span>m
|
||||||
|
</td>
|
||||||
|
<td class="px-4 py-3">
|
||||||
|
<span v-text="s.lapTime"></span>s
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@ -198,6 +202,7 @@ axios.get(`${config.baseurl}api/runners/me/${token}`)
|
|||||||
axios.get(`${config.baseurl}api/runners/me/${token}/scans`)
|
axios.get(`${config.baseurl}api/runners/me/${token}/scans`)
|
||||||
.then(({ data }) => {
|
.then(({ data }) => {
|
||||||
state.scans = data;
|
state.scans = data;
|
||||||
|
// TODO: filter for valid=true scans only
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
toast.error("An error occured while loading your profile data");
|
toast.error("An error occured while loading your profile data");
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user