refactor: shared link url (#18185)

This commit is contained in:
Daniel Dietzler 2025-05-09 22:23:00 +02:00 committed by GitHub
parent ff63b0fa8f
commit 55af925ab3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 9 additions and 18 deletions

View file

@ -1,7 +1,6 @@
<script lang="ts">
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import MenuOption from '$lib/components/shared-components/context-menu/menu-option.svelte';
import { serverConfig } from '$lib/stores/server-config.store';
import { copyToClipboard, makeSharedLinkUrl } from '$lib/utils';
import type { SharedLinkResponseDto } from '@immich/sdk';
import { mdiContentCopy } from '@mdi/js';
@ -15,7 +14,7 @@
let { link, menuItem = false }: Props = $props();
const handleCopy = async () => {
await copyToClipboard(makeSharedLinkUrl($serverConfig.externalDomain, link.key));
await copyToClipboard(makeSharedLinkUrl(link.key));
};
</script>