mirror of
https://github.com/immich-app/immich.git
synced 2025-07-03 21:40:00 +02:00
* chore(web): another missing translations * unused removed * more keys * lint fix * test fixed * dynamic translation fix * fixes * people search translation * params fixed * keep filter setting fix * lint fix * $t fixes * Update web/src/lib/i18n/en.json Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * another missing * activity translation * link sharing translations * expiration dropdown fix - didn't work localized * notification title * device logout * search results * reset to default * unsaved change * select from computer * selected * select-2 * select-3 * unmerge * pluralize, force icu message * Update web/src/lib/components/asset-viewer/asset-viewer.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * review fixes * remove user * plural fixes * ffmpeg settings * fixes * error title * plural fixes * onboarding * change password * more more * console log fix * another * api key desc * map marker * format fix * key fix * asset-utils * utils * misc --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
33 lines
1.2 KiB
Svelte
33 lines
1.2 KiB
Svelte
<script lang="ts">
|
|
import { copyToClipboard } from '$lib/utils';
|
|
import { mdiKeyVariant } from '@mdi/js';
|
|
import { createEventDispatcher } from 'svelte';
|
|
import Button from '../elements/buttons/button.svelte';
|
|
import FullScreenModal from '../shared-components/full-screen-modal.svelte';
|
|
import { t } from 'svelte-i18n';
|
|
|
|
export let secret = '';
|
|
|
|
const dispatch = createEventDispatcher<{
|
|
done: void;
|
|
}>();
|
|
const handleDone = () => dispatch('done');
|
|
</script>
|
|
|
|
<FullScreenModal title={$t('api_key')} icon={mdiKeyVariant} onClose={() => handleDone()}>
|
|
<div class="text-immich-primary dark:text-immich-dark-primary">
|
|
<p class="text-sm dark:text-immich-dark-fg">
|
|
{$t('api_key_description')}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="my-4 flex flex-col gap-2">
|
|
<!-- <label class="immich-form-label" for="secret">{ $t("api_key") }</label> -->
|
|
<textarea class="immich-form-input" id="secret" name="secret" readonly={true} value={secret} />
|
|
</div>
|
|
|
|
<svelte:fragment slot="sticky-bottom">
|
|
<Button on:click={() => copyToClipboard(secret)} fullwidth>{$t('copy_to_clipboard')}</Button>
|
|
<Button on:click={() => handleDone()} fullwidth>{$t('done')}</Button>
|
|
</svelte:fragment>
|
|
</FullScreenModal>
|