Skip to content

Commit

Permalink
fix(web): Update shared link Exif capitalization to match existing ca…
Browse files Browse the repository at this point in the history
…pitalization (#16010)

Update shared link Exif capitalization to match existing capitalization
  • Loading branch information
Snowknight26 authored Feb 11, 2025
1 parent 735f8d6 commit b40963e
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions web/src/lib/components/album-page/album-shared-link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,30 @@
};
const { album, sharedLink }: Props = $props();
const getShareProperties = () =>
[
DateTime.fromISO(sharedLink.createdAt).toLocaleString(
{
month: 'long',
day: 'numeric',
year: 'numeric',
},
{ locale: $locale },
),
sharedLink.allowUpload && $t('upload'),
sharedLink.allowDownload && $t('download'),
sharedLink.showMetadata && $t('exif').toUpperCase(),
sharedLink.password && $t('password'),
]
.filter(Boolean)
.join('');
</script>

<div class="flex justify-between items-center">
<div class="flex flex-col gap-1">
<Text size="small">{sharedLink.description || album.albumName}</Text>
<Text size="tiny" color="muted"
>{[
DateTime.fromISO(sharedLink.createdAt).toLocaleString(
{
month: 'long',
day: 'numeric',
year: 'numeric',
},
{ locale: $locale },
),
sharedLink.allowUpload && $t('upload'),
sharedLink.allowDownload && $t('download'),
sharedLink.showMetadata && $t('exif'),
sharedLink.password && $t('password'),
]
.filter(Boolean)
.join('')}</Text
>
<Text size="tiny" color="muted">{getShareProperties()}</Text>
</div>
<SharedLinkCopy link={sharedLink} />
</div>

0 comments on commit b40963e

Please sign in to comment.