mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
chore(web): migration svelte 5 syntax (#13883)
This commit is contained in:
parent
9203a61709
commit
0b3742cf13
310 changed files with 6435 additions and 4176 deletions
|
|
@ -6,7 +6,11 @@
|
|||
import { mdiCodeTags, mdiContentCopy, mdiMessage, mdiPartyPopper } from '@mdi/js';
|
||||
import { t } from 'svelte-i18n';
|
||||
|
||||
export let error: { message: string; code?: string | number; stack?: string } | undefined | null = undefined;
|
||||
interface Props {
|
||||
error?: { message: string; code?: string | number; stack?: string } | undefined | null;
|
||||
}
|
||||
|
||||
let { error = undefined }: Props = $props();
|
||||
|
||||
const handleCopy = async () => {
|
||||
if (!error) {
|
||||
|
|
@ -41,7 +45,7 @@
|
|||
color="primary"
|
||||
icon={mdiContentCopy}
|
||||
title={$t('copy_error')}
|
||||
on:click={() => handleCopy()}
|
||||
onclick={() => handleCopy()}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue