mirror of
https://github.com/immich-app/immich.git
synced 2025-04-01 02:51:27 -05:00
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:
parent
735f8d661e
commit
b40963ec52
1 changed files with 19 additions and 18 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue