diff --git a/src/components/scans/AddScanModal.svelte b/src/components/scans/AddScanModal.svelte index dce9cb7f..58b45df7 100644 --- a/src/components/scans/AddScanModal.svelte +++ b/src/components/scans/AddScanModal.svelte @@ -45,7 +45,7 @@ if (processed_last_submit === true) { processed_last_submit = false; const toast = Toastify({ - text: "Adding Scan", + text: $_('adding-scan'), duration: -1, }).showToast(); let postdata = { @@ -59,7 +59,7 @@ modal_open = false; // Toastify({ - text: "Scan added", + text: $_('scan-added'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -118,11 +118,11 @@

- Create a new scan (fixed only) + {$_('create-a-new-scan-fixed-only')}

- Please provide the nessecary information to create a new scan. + {$_('please-provide-the-nessecary-information-to-create-a-new-scan')}

@@ -163,7 +163,7 @@ {#if !is_distance_valid} - The scan's distance must be greater than 0m + {$_('the-scans-distance-must-be-greater-than-0m')} {/if}
diff --git a/src/components/scans/ScanDetail.svelte b/src/components/scans/ScanDetail.svelte index fcdbc117..fdf9355a 100644 --- a/src/components/scans/ScanDetail.svelte +++ b/src/components/scans/ScanDetail.svelte @@ -2,8 +2,6 @@ import { _ } from "svelte-i18n"; import store from "../../store"; import { - DonationService, - DonorService, RunnerService, ScanService, } from "@odit/lfk-client-js"; @@ -51,7 +49,7 @@ function submit() { if (data_loaded === true && save_enabled) { Toastify({ - text: "Scan is being updated", + text: $_('scan-is-being-updated'), duration: 2500, }).showToast(); let postdata = {}; @@ -64,7 +62,7 @@ Object.assign(original_data, editable); original_data = original_data; Toastify({ - text: "updated scan", + text: $_('updated-scan'), duration: 2500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -78,7 +76,7 @@ Object.assign(original_data, editable); original_data = original_data; Toastify({ - text: "updated scan", + text: $_('updated-scan'), duration: 2500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -92,7 +90,7 @@ ScanService.scanControllerRemove(original_data.id, false) .then((resp) => { Toastify({ - text: "Deleded Scan", + text: $_('deleted-scan'), duration: 500, backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", }).showToast(); @@ -154,7 +152,7 @@ {original_data.runner.lastname} #{original_data.id} - {#if store.state.jwtinfo.userdetails.permissions.includes('DONATION:DELETE')} + {#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:DELETE')} {#if delete_triggered} + class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-red-600 text-base font-medium text-white hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:">{$_('delete-scan')} {/if} {/if} {#if !delete_triggered} @@ -187,7 +184,7 @@
-
{#if editable.responseType === 'TRACKSCAN'} @@ -236,7 +233,7 @@ + {$_('distance')}
- The scan's distance must be greater than 0m + {$_('the-scans-distance-must-be-greater-than-0m')} {/if}
diff --git a/src/components/scans/Scans.svelte b/src/components/scans/Scans.svelte index b817ab57..984190a2 100644 --- a/src/components/scans/Scans.svelte +++ b/src/components/scans/Scans.svelte @@ -9,7 +9,7 @@
- Scans + {$_('scans')} {#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:CREATE')} {/if} diff --git a/src/components/scans/ScansEmptyState.svelte b/src/components/scans/ScansEmptyState.svelte index 7caf7d76..f1964072 100644 --- a/src/components/scans/ScansEmptyState.svelte +++ b/src/components/scans/ScansEmptyState.svelte @@ -6,7 +6,7 @@

- There are no scans yet
- Add your fist scan + {$_('there-are-no-scans-yet')}
+ {$_('add-your-fist-scan')}

diff --git a/src/components/scans/ScansOverview.svelte b/src/components/scans/ScansOverview.svelte index 7bd23189..81ccec1e 100644 --- a/src/components/scans/ScansOverview.svelte +++ b/src/components/scans/ScansOverview.svelte @@ -1,8 +1,6 @@