瀏覽代碼

fix(web) add disable property to generated shared link (#1287)

Alex 2 年之前
父節點
當前提交
2ffb7cab2e

+ 0 - 1
server/apps/immich/src/api-v1/share/share.core.ts

@@ -48,7 +48,6 @@ export class ShareCore {
 
   async getSharedLinkById(id: string): Promise<SharedLinkEntity> {
     const link = await this.sharedLinkRepository.getById(id);
-    console.log(link);
     if (!link) {
       throw new BadRequestException('Shared link not found');
     }

+ 1 - 1
web/src/lib/components/shared-components/create-share-link-modal/create-shared-link-modal.svelte

@@ -226,7 +226,7 @@
 
 		{#if isShowSharedLink}
 			<div class="flex w-full gap-4">
-				<input class="immich-form-input w-full" bind:value={sharedLink} />
+				<input class="immich-form-input w-full" bind:value={sharedLink} disabled />
 
 				<button
 					on:click={() => handleCopy()}