| @@ -1,8 +1,6 @@ | ||||
| <script> | ||||
|   import { _ } from "svelte-i18n"; | ||||
|   import { clickOutside } from "../base/outsideclick"; | ||||
|   import { focusTrap } from "svelte-focus-trap"; | ||||
|   import { ScanStationService } from "@odit/lfk-client-js"; | ||||
|   import Toastify from "toastify-js"; | ||||
|   import { tick, createEventDispatcher } from "svelte"; | ||||
|   export let copy_modal_open; | ||||
| @@ -25,14 +23,14 @@ | ||||
|         throw new Error(); | ||||
|       } | ||||
|       Toastify({ | ||||
|         text: "Copied token to clipboard", | ||||
|         text: $_('copied-token-to-clipboard'), | ||||
|         duration: 500, | ||||
|         backgroundColor: "linear-gradient(to right, #00b09b, #96c93d)", | ||||
|       }).showToast(); | ||||
|       copied = true; | ||||
|     } catch (err) { | ||||
|       Toastify({ | ||||
|         text: "Error whyile copying to clipboard", | ||||
|         text: $_('error-whyile-copying-to-clipboard'), | ||||
|         duration: 500, | ||||
|         backgroundColor: | ||||
|           "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)", | ||||
| @@ -77,13 +75,12 @@ | ||||
|                   d="M4 5v11h16V5H4zM2 4a1 1 0 011-1h18a1 1 0 011 1v14H2V4zM1 19h22v2H1v-2z" /></svg> | ||||
|             </div> | ||||
|             <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"> | ||||
|               <h3 class="text-lg leading-6 font-medium text-gray-900">Token</h3> | ||||
|               <h3 class="text-lg leading-6 font-medium text-gray-900">{$_('token')}</h3> | ||||
|               <div class="mt-2 mb-6"> | ||||
|                 <p class="text-sm text-gray-500"> | ||||
|                   The scanstation's api token will only get displayed once - you | ||||
|                   won't be able to change or view it again! | ||||
|                   {$_('the-scanstations-api-token-will-only-get-displayed-once-you-wont-be-able-to-change-or-view-it-again')} | ||||
|                   <br /> | ||||
|                   Please copy the token and store it somewhere save! | ||||
|                   {$_('please-copy-the-token-and-store-it-somewhere-save')} | ||||
|                 </p> | ||||
|               </div> | ||||
|               <div class="mt-2 mb-6"> | ||||
| @@ -118,7 +115,7 @@ | ||||
|             on:click={close} | ||||
|             type="button" | ||||
|             class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-green-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500 sm:ml-3 sm:w-auto sm:text-sm"> | ||||
|             Yes, i copied the token. | ||||
|             {$_('yes-i-copied-the-token')} | ||||
|           </button> | ||||
|         </div> | ||||
|       </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user