forked from Cutlery/immich
		
	chore(mobile,web): use originalFilename (#7692)
* chore(mobile,web): use originalFilename * web * remove unused code
This commit is contained in:
		
							parent
							
								
									1eea547aa2
								
							
						
					
					
						commit
						cd058fdafa
					
				| @ -22,7 +22,7 @@ class Asset { | ||||
|         updatedAt = remote.updatedAt, | ||||
|         durationInSeconds = remote.duration.toDuration()?.inSeconds ?? 0, | ||||
|         type = remote.type.toAssetType(), | ||||
|         fileName = p.basename(remote.originalPath), | ||||
|         fileName = remote.originalFileName, | ||||
|         height = remote.exifInfo?.exifImageHeight?.toInt(), | ||||
|         width = remote.exifInfo?.exifImageWidth?.toInt(), | ||||
|         livePhotoVideoId = remote.livePhotoVideoId, | ||||
|  | ||||
| @ -8,7 +8,7 @@ | ||||
|   import { user } from '$lib/stores/user.store'; | ||||
|   import { websocketEvents } from '$lib/stores/websocket'; | ||||
|   import { getAssetThumbnailUrl, getPeopleThumbnailUrl, isSharedLink, handlePromiseError } from '$lib/utils'; | ||||
|   import { delay, getAssetFilename } from '$lib/utils/asset-utils'; | ||||
|   import { delay } from '$lib/utils/asset-utils'; | ||||
|   import { autoGrowHeight } from '$lib/utils/autogrow'; | ||||
|   import { clickOutside } from '$lib/utils/click-outside'; | ||||
|   import { | ||||
| @ -459,13 +459,11 @@ | ||||
| 
 | ||||
|         <div> | ||||
|           <p class="break-all flex place-items-center gap-2"> | ||||
|             {#if isOwner} | ||||
|             {asset.originalFileName} | ||||
|               <button title="Show File Location" on:click={toggleAssetPath}> | ||||
|             {#if isOwner} | ||||
|               <button title="Show File Location" on:click={toggleAssetPath} class="-translate-y-[2px]"> | ||||
|                 <Icon path={mdiInformationOutline} /> | ||||
|               </button> | ||||
|             {:else} | ||||
|               {getAssetFilename(asset)} | ||||
|             {/if} | ||||
|           </p> | ||||
|           <div class="flex gap-2 text-sm"> | ||||
| @ -650,7 +648,7 @@ | ||||
| {/if} | ||||
| 
 | ||||
| {#if currentAlbum && currentAlbum.sharedUsers.length > 0 && asset.owner} | ||||
|   <section class="px-6 dark:text-immich-dark-fg"> | ||||
|   <section class="px-6 dark:text-immich-dark-fg mt-4"> | ||||
|     <p class="text-sm">SHARED BY</p> | ||||
|     <div class="flex gap-4 pt-4"> | ||||
|       <div> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user