mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 18:58:56 -04:00 
			
		
		
		
	fix(web): copy shared link (#6309)
This commit is contained in:
		
							parent
							
								
									bf1dd36fa9
								
							
						
					
					
						commit
						08fcce9e90
					
				| @ -20,8 +20,11 @@ export const copyToClipboard = async (secret: string) => { | |||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export const makeSharedLinkUrl = (externalDomain: string, key: string) => { | export const makeSharedLinkUrl = (externalDomain: string, key: string) => { | ||||||
|   const url = externalDomain || window.location.origin; |   let url = externalDomain || window.location.origin; | ||||||
|   return `${url + url.endsWith('/') ? '' : '/'}share/${key}`; |   if (!url.endsWith('/')) { | ||||||
|  |     url += '/'; | ||||||
|  |   } | ||||||
|  |   return `${url}share/${key}`; | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export const oauth = { | export const oauth = { | ||||||
|  | |||||||
| @ -94,7 +94,7 @@ | |||||||
|       return; |       return; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     await copyToClipboard(password ? `Link: ${sharedLink}\nPassword: ${password}` : sharedLink); |     await copyToClipboard(sharedLink); | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   const getExpirationTimeInMillisecond = () => { |   const getExpirationTimeInMillisecond = () => { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user