mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
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,
|
updatedAt = remote.updatedAt,
|
||||||
durationInSeconds = remote.duration.toDuration()?.inSeconds ?? 0,
|
durationInSeconds = remote.duration.toDuration()?.inSeconds ?? 0,
|
||||||
type = remote.type.toAssetType(),
|
type = remote.type.toAssetType(),
|
||||||
fileName = p.basename(remote.originalPath),
|
fileName = remote.originalFileName,
|
||||||
height = remote.exifInfo?.exifImageHeight?.toInt(),
|
height = remote.exifInfo?.exifImageHeight?.toInt(),
|
||||||
width = remote.exifInfo?.exifImageWidth?.toInt(),
|
width = remote.exifInfo?.exifImageWidth?.toInt(),
|
||||||
livePhotoVideoId = remote.livePhotoVideoId,
|
livePhotoVideoId = remote.livePhotoVideoId,
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
import { user } from '$lib/stores/user.store';
|
import { user } from '$lib/stores/user.store';
|
||||||
import { websocketEvents } from '$lib/stores/websocket';
|
import { websocketEvents } from '$lib/stores/websocket';
|
||||||
import { getAssetThumbnailUrl, getPeopleThumbnailUrl, isSharedLink, handlePromiseError } from '$lib/utils';
|
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 { autoGrowHeight } from '$lib/utils/autogrow';
|
||||||
import { clickOutside } from '$lib/utils/click-outside';
|
import { clickOutside } from '$lib/utils/click-outside';
|
||||||
import {
|
import {
|
||||||
@ -459,13 +459,11 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p class="break-all flex place-items-center gap-2">
|
<p class="break-all flex place-items-center gap-2">
|
||||||
|
{asset.originalFileName}
|
||||||
{#if isOwner}
|
{#if isOwner}
|
||||||
{asset.originalFileName}
|
<button title="Show File Location" on:click={toggleAssetPath} class="-translate-y-[2px]">
|
||||||
<button title="Show File Location" on:click={toggleAssetPath}>
|
|
||||||
<Icon path={mdiInformationOutline} />
|
<Icon path={mdiInformationOutline} />
|
||||||
</button>
|
</button>
|
||||||
{:else}
|
|
||||||
{getAssetFilename(asset)}
|
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
<div class="flex gap-2 text-sm">
|
<div class="flex gap-2 text-sm">
|
||||||
@ -650,7 +648,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{#if currentAlbum && currentAlbum.sharedUsers.length > 0 && asset.owner}
|
{#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>
|
<p class="text-sm">SHARED BY</p>
|
||||||
<div class="flex gap-4 pt-4">
|
<div class="flex gap-4 pt-4">
|
||||||
<div>
|
<div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user