diff --git a/src/components/scans/ScansOverview.svelte b/src/components/scans/ScansOverview.svelte index c653d614..dd0880d6 100644 --- a/src/components/scans/ScansOverview.svelte +++ b/src/components/scans/ScansOverview.svelte @@ -1,125 +1,140 @@ -{#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:GET')} +{#if store.state.jwtinfo.userdetails.permissions.includes("SCAN:GET")} {#await scans_promise}
{$_('scans-are-being-loaded')}
-{$_('this-might-take-a-moment')}
+ role="alert" + > +{$_("scans-are-being-loaded")}
+{$_("this-might-take-a-moment")}
- {$_('runner')} - | -- {$_('distance-track')} - | -- {$_('laptime')} - | -- {$_('status')} - | -- {$_('action')} - | -
---|
ID | ++ {$_("runner")} + | ++ {$_("distance")} + | ++ {$_("track")} + | ++ {$_("laptime")} + | ++ {$_("status")} + | ++ {$_("action")} + | +||
---|---|---|---|---|---|---|---|---|
+ | + | + | + | + | ||||
+
+ {scan.id}
+
+ |
{scan.runner.firstname}
- {scan.runner.middlename || ''}
- {scan.runner.lastname}
+ class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-gray-100 text-gray-800"
+ >{scan.runner.firstname}
+ {scan.runner.middlename || ""}
+ {scan.runner.lastname}
|
- + |
{#if scan.distance < 1000}
{scan.distance}m
{:else}{scan.distance / 1000}km{/if}
+
+ |
+ + | -+ |
{#if scan.responseType === "TRACKSCAN"}
{format_laptime(scan.lapTime)}
{:else}
- {$_('scan-with-fixed-distance')}
+ {$_("scan-with-fixed-distance")}
{/if}
|
@@ -127,23 +142,30 @@
+ class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium" + > + class="ml-4 text-indigo-600 hover:text-indigo-900 cursor-pointer" + >{$_("cancel-delete")} + class="ml-4 text-red-600 hover:text-red-900 cursor-pointer" + >{$_("confirm-delete")} | {:else}+ class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium" + > {$_('details')} - {#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:DELETE')} + class="text-indigo-600 hover:text-indigo-900" + >{$_("details")} + {#if store.state.jwtinfo.userdetails.permissions.includes("SCAN:DELETE")} + class="ml-4 text-red-600 hover:text-red-900 cursor-pointer" + >{$_("delete")} {/if} | {/if}