- {#if isExpired}
-
{$t('expired')}
- {:else if expiresAt}
-
- {$t('expires_date', { values: { date: getCountDownExpirationDate(expiresAt, now) } })}
-
- {:else}
-
{$t('expires_date', { values: { date: '∞' } })}
- {/if}
-
- {#if sharedLink.allowUpload}
-
{$t('upload')}
+
+ {#if isExpired}
+ {$t('expired')}
+ {:else if expiresAt}
+
+ {$t('expires_date', { values: { date: getCountDownExpirationDate(expiresAt, now) } })}
+
+ {:else}
+ {$t('expires_date', { values: { date: '∞' } })}
{/if}
- {#if sharedLink.allowDownload}
- {$t('download')}
+ {#if sharedLink.slug}
+ {$t('custom_url')}
+ {/if}
+
+ {#if sharedLink.allowUpload}
+ {$t('upload')}
+ {/if}
+
+ {#if sharedLink.showMetadata && sharedLink.allowDownload}
+ {$t('download')}
{/if}
{#if sharedLink.showMetadata}
- {$t('exif')}
+ {$t('exif')}
{/if}
{#if sharedLink.password}
- {$t('password')}
- {/if}
- {#if sharedLink.slug}
- {$t('custom_url')}
+ {$t('password')}
{/if}
+
+ {#if sharedLink.description}
+
{sharedLink.description}
+ {/if}
diff --git a/web/src/lib/services/shared-link.service.ts b/web/src/lib/services/shared-link.service.ts
index ea7f158db8..4e6a942682 100644
--- a/web/src/lib/services/shared-link.service.ts
+++ b/web/src/lib/services/shared-link.service.ts
@@ -17,19 +17,19 @@ import {
type SharedLinkResponseDto,
} from '@immich/sdk';
import { modalManager, toastManager, type ActionItem } from '@immich/ui';
-import { mdiCircleEditOutline, mdiContentCopy, mdiDelete, mdiQrcode } from '@mdi/js';
+import { mdiContentCopy, mdiPencilOutline, mdiQrcode, mdiTrashCanOutline } from '@mdi/js';
import type { MessageFormatter } from 'svelte-i18n';
export const getSharedLinkActions = ($t: MessageFormatter, sharedLink: SharedLinkResponseDto) => {
const Edit: ActionItem = {
title: $t('edit_link'),
- icon: mdiCircleEditOutline,
+ icon: mdiPencilOutline,
onAction: () => void goto(`${AppRoute.SHARED_LINKS}/${sharedLink.id}`),
};
const Delete: ActionItem = {
title: $t('delete_link'),
- icon: mdiDelete,
+ icon: mdiTrashCanOutline,
color: 'danger',
onAction: () => void handleDeleteSharedLink(sharedLink),
};