mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat: add locationParts separator
This commit is contained in:
parent
6720e7c959
commit
e04f483702
1 changed files with 4 additions and 10 deletions
|
|
@ -29,6 +29,8 @@
|
||||||
let isFromExternalLibrary = $derived(!!asset.libraryId);
|
let isFromExternalLibrary = $derived(!!asset.libraryId);
|
||||||
let assetData = $derived(JSON.stringify(asset, null, 2));
|
let assetData = $derived(JSON.stringify(asset, null, 2));
|
||||||
|
|
||||||
|
let locationParts = $derived([asset.exifInfo?.city, asset.exifInfo?.state, asset.exifInfo?.country].filter(Boolean));
|
||||||
|
|
||||||
let timeZone = $derived(asset.exifInfo?.timeZone);
|
let timeZone = $derived(asset.exifInfo?.timeZone);
|
||||||
let dateTime = $derived(
|
let dateTime = $derived(
|
||||||
timeZone && asset.exifInfo?.dateTimeOriginal
|
timeZone && asset.exifInfo?.dateTimeOriginal
|
||||||
|
|
@ -143,16 +145,8 @@
|
||||||
|
|
||||||
<div class="flex items-start gap-x-1">
|
<div class="flex items-start gap-x-1">
|
||||||
<Icon icon={mdiMapMarkerOutline} size="16" />
|
<Icon icon={mdiMapMarkerOutline} size="16" />
|
||||||
{#if asset.exifInfo?.city || asset.exifInfo?.state || asset.exifInfo?.country}
|
{#if locationParts.length > 0}
|
||||||
{#if asset.exifInfo?.city}
|
{locationParts.join(', ')}
|
||||||
{asset.exifInfo.city}
|
|
||||||
{/if}
|
|
||||||
{#if asset.exifInfo?.state}
|
|
||||||
{asset.exifInfo.state}
|
|
||||||
{/if}
|
|
||||||
{#if asset.exifInfo?.country}
|
|
||||||
{asset.exifInfo.country}
|
|
||||||
{/if}
|
|
||||||
{:else}
|
{:else}
|
||||||
{$t('unknown')}
|
{$t('unknown')}
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue