mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
chore(web): migration svelte 5 syntax (#13883)
This commit is contained in:
@@ -5,8 +5,12 @@
|
||||
import FullScreenModal from '../shared-components/full-screen-modal.svelte';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
export let secret = '';
|
||||
export let onDone: () => void;
|
||||
interface Props {
|
||||
secret?: string;
|
||||
onDone: () => void;
|
||||
}
|
||||
|
||||
let { secret = '', onDone }: Props = $props();
|
||||
</script>
|
||||
|
||||
<FullScreenModal title={$t('api_key')} icon={mdiKeyVariant} onClose={onDone}>
|
||||
@@ -21,8 +25,8 @@
|
||||
<textarea class="immich-form-input" id="secret" name="secret" readonly={true} value={secret}></textarea>
|
||||
</div>
|
||||
|
||||
<svelte:fragment slot="sticky-bottom">
|
||||
<Button on:click={() => copyToClipboard(secret)} fullwidth>{$t('copy_to_clipboard')}</Button>
|
||||
<Button on:click={onDone} fullwidth>{$t('done')}</Button>
|
||||
</svelte:fragment>
|
||||
{#snippet stickyBottom()}
|
||||
<Button onclick={() => copyToClipboard(secret)} fullwidth>{$t('copy_to_clipboard')}</Button>
|
||||
<Button onclick={onDone} fullwidth>{$t('done')}</Button>
|
||||
{/snippet}
|
||||
</FullScreenModal>
|
||||
|
||||
Reference in New Issue
Block a user