You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-06-15 03:30:33 +02:00
fix(web) show exif info in public shared (#1283)
* fix(web) show exif in public share page * Added exif info to return payload'
This commit is contained in:
@ -23,14 +23,6 @@
|
||||
export let publicSharedKey = '';
|
||||
export let showNavigation = true;
|
||||
|
||||
$: {
|
||||
appearsInAlbums = [];
|
||||
|
||||
api.albumApi.getAllAlbums(undefined, asset.id).then((result) => {
|
||||
appearsInAlbums = result.data;
|
||||
});
|
||||
}
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
let halfLeftHover = false;
|
||||
let halfRightHover = false;
|
||||
@ -41,8 +33,15 @@
|
||||
let shouldPlayMotionPhoto = false;
|
||||
const onKeyboardPress = (keyInfo: KeyboardEvent) => handleKeyboardPress(keyInfo.key);
|
||||
|
||||
onMount(() => {
|
||||
onMount(async () => {
|
||||
document.addEventListener('keydown', onKeyboardPress);
|
||||
|
||||
try {
|
||||
const { data } = await api.albumApi.getAllAlbums(undefined, asset.id);
|
||||
appearsInAlbums = data;
|
||||
} catch (e) {
|
||||
console.error('Error getting album that asset belong to', e);
|
||||
}
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
|
Reference in New Issue
Block a user