diff --git a/src/components/orgs/OrgDetail.svelte b/src/components/orgs/OrgDetail.svelte index 13ee620c..fad57dfd 100644 --- a/src/components/orgs/OrgDetail.svelte +++ b/src/components/orgs/OrgDetail.svelte @@ -119,9 +119,9 @@ } } async function copy() { - if(!editable.registrationKey){ + if (!editable.registrationKey) { Toastify({ - text: $_('you-have-to-save-your-changes-to-generate-a-link'), + text: $_("you-have-to-save-your-changes-to-generate-a-link"), duration: 500, backgroundColor: "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)", @@ -167,7 +167,8 @@ passed_orgs={[]} passed_org={editable} opened_from="OrgDetail" - bind:import_modal_open /> + bind:import_modal_open +/> {#if data_loaded}
@@ -176,29 +177,35 @@ + bind:generate_orgs + /> - {#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:IMPORT')} + {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER:IMPORT")} {/if} - {#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:DELETE')} + {#if store.state.jwtinfo.userdetails.permissions.includes("RUNNER: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:text-sm" + >{$_("confirm-delete")} + class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-400 text-base font-medium text-white sm:w-auto sm:text-sm" + >{$_("cancel")} {/if} {#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:text-sm" + >{$_("delete-organization")} {/if} {/if} {#if !delete_triggered} @@ -215,7 +224,9 @@ disabled={!save_enabled} class:opacity-50={!save_enabled} type="button" - class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm">{$_('save-changes')} + class="w-full justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm" + >{$_("save-changes")} {/if} @@ -234,12 +245,13 @@ class="h-3 w-3 stroke-current" height="1em" width="1em" - xmlns="http://www.w3.org/2000/svg"> - + xmlns="http://www.w3.org/2000/svg" + > +
  • - {$_('home')}{$_("home")} - + xmlns="http://www.w3.org/2000/svg" + > +
  • + height="24" + > + d="M21 20h2v2H1v-2h2V3a1 1 0 0 1 1-1h16a1 1 0 0 1 1 1v17zm-2 0V4H5v16h14zM8 11h3v2H8v-2zm0-4h3v2H8V7zm0 8h3v2H8v-2zm5 0h3v2h-3v-2zm0-4h3v2h-3v-2zm0-4h3v2h-3V7z" + />
  • - {$_('organizations')}{$_("organizations")} - + xmlns="http://www.w3.org/2000/svg" + > +
  • Org-Details #{params.orgid} @@ -291,35 +302,34 @@
    - + + class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" + />
    - + + class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" + /> {#if !isAddress1Valid} - {$_('address-is-required')} + class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1" + > + {$_("address-is-required")} {/if}
    + class="block text-sm font-medium text-gray-700" + >{$_("apartment-suite-etc")} + class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" + />
    - + + class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" + /> {#if !iszipcodevalid} - {$_('valid-zipcode-postal-code-is-required')} + class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1" + > + {$_("valid-zipcode-postal-code-is-required")} {/if}
    - + + class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2" + /> {#if !iscityvalid} - {$_('valid-city-is-required')} + class="flex items-center font-medium tracking-wide text-red-500 text-xs mt-1 ml-1" + > + {$_("valid-city-is-required")} {/if}
    @@ -469,7 +500,7 @@
  • {:else} {#await promise} - {$_('organization-detail-is-being-loaded')} + {$_("organization-detail-is-being-loaded")} {:catch error} {/await} diff --git a/src/components/scanstations/CopyScanStationTokenModal.svelte b/src/components/scanstations/CopyScanStationTokenModal.svelte index 3f3f767b..6d1a5ede 100644 --- a/src/components/scanstations/CopyScanStationTokenModal.svelte +++ b/src/components/scanstations/CopyScanStationTokenModal.svelte @@ -1,6 +1,6 @@