forked from Cutlery/immich
		
	fix(web) add disable property to generated shared link (#1287)
This commit is contained in:
		
							parent
							
								
									acffabf9de
								
							
						
					
					
						commit
						2ffb7cab2e
					
				| @ -48,7 +48,6 @@ export class ShareCore { | |||||||
| 
 | 
 | ||||||
|   async getSharedLinkById(id: string): Promise<SharedLinkEntity> { |   async getSharedLinkById(id: string): Promise<SharedLinkEntity> { | ||||||
|     const link = await this.sharedLinkRepository.getById(id); |     const link = await this.sharedLinkRepository.getById(id); | ||||||
|     console.log(link); |  | ||||||
|     if (!link) { |     if (!link) { | ||||||
|       throw new BadRequestException('Shared link not found'); |       throw new BadRequestException('Shared link not found'); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -226,7 +226,7 @@ | |||||||
| 
 | 
 | ||||||
| 		{#if isShowSharedLink} | 		{#if isShowSharedLink} | ||||||
| 			<div class="flex w-full gap-4"> | 			<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 | 				<button | ||||||
| 					on:click={() => handleCopy()} | 					on:click={() => handleCopy()} | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user