diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte index 149acc8a57..ee9eafb5f7 100644 --- a/web/src/lib/components/asset-viewer/detail-panel.svelte +++ b/web/src/lib/components/asset-viewer/detail-panel.svelte @@ -107,7 +107,6 @@ try { await api.assetApi.updateAsset({ id: asset.id, updateAssetDto: { dateTimeOriginal } }); - notificationController.show({ message: 'Metadata updated please reload to apply', type: NotificationType.Info }); } catch (error) { handleError(error, 'Unable to change date'); } @@ -237,11 +236,12 @@ zone: asset.exifInfo.timeZone ?? undefined, })}
(isShowChangeDate = true)} on:keydown={(event) => event.key === 'Enter' && (isShowChangeDate = true)} tabindex="0" role="button" + title="Edit date" >
@@ -275,28 +275,27 @@
{:else}
(isShowChangeDate = true)} on:keydown={(event) => event.key === 'Enter' && (isShowChangeDate = true)} tabindex="0" role="button" + title="Add date" >
-
-

No date available for this asset, click to add one.

-
+

Add a date

{/if} @@ -381,52 +380,54 @@ {#if asset.exifInfo?.city}
(isShowChangeLocation = true)} on:keydown={(event) => event.key === 'Enter' && (isShowChangeLocation = true)} tabindex="0" role="button" + title="Edit location" > -
+
+
-
-

{asset.exifInfo.city}

- {#if asset.exifInfo?.state} -
-

{asset.exifInfo.state}

-
- {/if} - {#if asset.exifInfo?.country} -
-

{asset.exifInfo.country}

-
- {/if} +
+

{asset.exifInfo.city}

+ {#if asset.exifInfo?.state} +
+

{asset.exifInfo.state}

+
+ {/if} + {#if asset.exifInfo?.country} +
+

{asset.exifInfo.country}

+
+ {/if} +
- +
+ +
{:else}
(isShowChangeLocation = true)} on:keydown={(event) => event.key === 'Enter' && (isShowChangeLocation = true)} tabindex="0" role="button" + title="Add location" >
-
-

No location available for this asset, click to add one.

-
+

Add a location

+
+
+
-
{/if} {#if isShowChangeLocation}