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
7 changed files with 9 additions and 18 deletions

View File

@@ -5,7 +5,6 @@
import FullScreenModal from '$lib/components/shared-components/full-screen-modal.svelte';
import { AppRoute } from '$lib/constants';
import QrCodeModal from '$lib/modals/QrCodeModal.svelte';
import { serverConfig } from '$lib/stores/server-config.store';
import { makeSharedLinkUrl } from '$lib/utils';
import {
AlbumUserRole,
@@ -34,7 +33,7 @@
let sharedLinkUrl = $state('');
const handleViewQrCode = (sharedLink: SharedLinkResponseDto) => {
sharedLinkUrl = makeSharedLinkUrl($serverConfig.externalDomain, sharedLink.key);
sharedLinkUrl = makeSharedLinkUrl(sharedLink.key);
};
const roleOptions: Array<{ title: string; value: AlbumUserRole | 'none'; icon?: string }> = [