diff --git a/src/components/scanstations/CopyScanStationTokenModal.svelte b/src/components/scanstations/CopyScanStationTokenModal.svelte index f453b4eb..69b8b78f 100644 --- a/src/components/scanstations/CopyScanStationTokenModal.svelte +++ b/src/components/scanstations/CopyScanStationTokenModal.svelte @@ -1,199 +1,199 @@ {#if copy_modal_open} - {#if valueCopy != null} - - {/if} -
-
- -
+ {#if valueCopy != null} + + {/if} +
+
+ +
{/if} diff --git a/src/components/scanstations/ScanStations.svelte b/src/components/scanstations/ScanStations.svelte index e11fa05f..74983244 100644 --- a/src/components/scanstations/ScanStations.svelte +++ b/src/components/scanstations/ScanStations.svelte @@ -1,44 +1,229 @@
- - {$_("scanstations")} - {#if store.state.jwtinfo.userdetails.permissions.includes("STATION:CREATE")} - - {/if} - - + + {$_("scanstations")} + {#if store.state.jwtinfo.userdetails.permissions.includes("STATION:CREATE")} + + {/if} + + { + modal_open = false; + active_deletes[event.detail.id] = false; + }} + bind:modal_open + bind:delete_station + /> + {#if store.state.jwtinfo.userdetails.permissions.includes("STATION:GET")} + {#await promise} + + {:then} + {#if current_stations.length === 0} + + {:else} + +
+ + + + + + + + + + + {#each current_stations as s} + {#if Object.values(s) + .toString() + .toLowerCase() + .includes(searchvalue)} + + + + + {#if active_deletes[s.id] === true} + + {:else} + + {/if} + + {/if} + {/each} + +
+ {$_("track")} + + {$_("description")} + + {$_("status")} + + {$_("action")} +
+ + +
+
+
+ {s.description} +
+
+
+
+
+ {#if s.enabled} + {$_("active")} + {:else} + {$_("inactive")} + {/if} +
+
+ + + + {$_("details")} + {#if store.state.jwtinfo.userdetails.permissions.includes("STATION:DELETE")} + + {/if} +
+
+ {/if} + {:catch error} +
+ + {$_("general_promise_error")} + {error} + +
+ {/await} + {/if}
{#if store.state.jwtinfo.userdetails.permissions.includes("STATION:CREATE")} - - + + {/if} diff --git a/src/components/scanstations/ScanStationsOverview.svelte b/src/components/scanstations/ScanStationsOverview.svelte deleted file mode 100644 index b060009d..00000000 --- a/src/components/scanstations/ScanStationsOverview.svelte +++ /dev/null @@ -1,195 +0,0 @@ - - - { - modal_open = false; - active_deletes[event.detail.id] = false; - }} - bind:modal_open - bind:delete_station -/> -{#if store.state.jwtinfo.userdetails.permissions.includes("STATION:GET")} - {#await promise} - - {:then} - {#if current_stations.length === 0} - - {:else} - -
- - - - - - - - - - - {#each current_stations as s} - {#if Object.values(s) - .toString() - .toLowerCase() - .includes(searchvalue)} - - - - - {#if active_deletes[s.id] === true} - - {:else} - - {/if} - - {/if} - {/each} - -
- {$_("track")} - - {$_("description")} - - {$_("status")} - - {$_("action")} -
- - -
-
-
- {s.description} -
-
-
-
-
- {#if s.enabled} - {$_("active")} - {:else} - {$_("inactive")} - {/if} -
-
- - - - {$_("details")} - {#if store.state.jwtinfo.userdetails.permissions.includes("STATION:DELETE")} - - {/if} -
-
- {/if} - {:catch error} -
- - {$_("general_promise_error")} - {error} - -
- {/await} -{/if}