fix(web): Update shared link Exif capitalization to match existing capitalization (#16010)

Update shared link Exif capitalization to match existing capitalization
This commit is contained in:
Snowknight26 2025-02-10 18:00:37 -06:00 committed by GitHub
parent 735f8d661e
commit b40963ec52
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,13 +12,9 @@
}; };
const { album, sharedLink }: Props = $props(); const { album, sharedLink }: Props = $props();
</script>
<div class="flex justify-between items-center"> const getShareProperties = () =>
<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( DateTime.fromISO(sharedLink.createdAt).toLocaleString(
{ {
month: 'long', month: 'long',
@ -29,12 +25,17 @@
), ),
sharedLink.allowUpload && $t('upload'), sharedLink.allowUpload && $t('upload'),
sharedLink.allowDownload && $t('download'), sharedLink.allowDownload && $t('download'),
sharedLink.showMetadata && $t('exif'), sharedLink.showMetadata && $t('exif').toUpperCase(),
sharedLink.password && $t('password'), sharedLink.password && $t('password'),
] ]
.filter(Boolean) .filter(Boolean)
.join(' • ')}</Text .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">{getShareProperties()}</Text>
</div> </div>
<SharedLinkCopy link={sharedLink} /> <SharedLinkCopy link={sharedLink} />
</div> </div>