diff --git a/src/components/scanstations/ScanStationsOverview.svelte b/src/components/scanstations/ScanStationsOverview.svelte index 9d27551d..fc5e8a0a 100644 --- a/src/components/scanstations/ScanStationsOverview.svelte +++ b/src/components/scanstations/ScanStationsOverview.svelte @@ -1,29 +1,29 @@ -{#if store.state.jwtinfo.userdetails.permissions.includes('TEAM:GET')} +{#if store.state.jwtinfo.userdetails.permissions.includes('STATION:GET')} {#await promise} {:then} - {#if current_contacts.length === 0} + {#if current_stations.length === 0} {:else} - {$_('name')} + Description - {$_('groups')} + Track - {$_('address')} + Enabled {$_('action')} @@ -58,19 +58,17 @@ - {#each current_contacts as t} - {#if Object.values(t) + {#each current_stations as s} + {#if Object.values(s) .toString() .toLowerCase() .includes(searchvalue)} - +
- {t.firstname} - {t.middlename || ''} - {t.lastname} + {s.description}
@@ -79,23 +77,9 @@
- {#if t.groups.length > 0} - {#each t.groups as g} - {#if g.responseType === 'RUNNERORGANIZATION'} - {g.name} - {:else} - {g.parentGroup.name} - > - {g.name} - {/if} - {/each} - {:else} - {$_('contact-is-not-a-member-in-any-group')} - {/if} + {s.track.name || s.track.distance + "m"}
@@ -104,41 +88,36 @@
- {#if t.address.address1 !== null} - {t.address.address1}
- {t.address.address2 || ''}
- {t.address.postalcode} - {t.address.city} - {t.address.country} - {/if} + {s.enabled.toString()}
- {#if active_deletes[t.id] === true} + {#if active_deletes[s.id] === true} @@ -147,12 +126,12 @@ {$_('details')} - {#if store.state.jwtinfo.userdetails.permissions.includes('TEAM:DELETE')} + {#if store.state.jwtinfo.userdetails.permissions.includes('STATION:DELETE')}