1
0
mirror of https://github.com/immich-app/immich.git synced 2025-07-02 05:44:37 +02:00

fix(web): back button from person detail page (#5047)

* feat: return button to the main page

* add album route

* feat: do not use explicit routes
This commit is contained in:
martin
2023-11-14 23:55:03 +01:00
committed by GitHub
parent ecbe7beb6c
commit 6214d510d6
4 changed files with 13 additions and 2 deletions

View File

@ -20,9 +20,11 @@
} from '@mdi/js';
import Icon from '$lib/components/elements/icon.svelte';
import Map from '../shared-components/map/map.svelte';
import { AppRoute } from '$lib/constants';
export let asset: AssetResponseDto;
export let albums: AlbumResponseDto[] = [];
export let albumId: string | null = null;
let textarea: HTMLTextAreaElement;
let description: string;
@ -136,7 +138,11 @@
<div class="mt-4 flex flex-wrap gap-2">
{#each people as person (person.id)}
<a href="/people/{person.id}" class="w-[90px]" on:click={() => dispatch('close-viewer')}>
<a
href="/people/{person.id}?previousRoute={albumId ? `${AppRoute.ALBUMS}/${albumId}` : AppRoute.PHOTOS}"
class="w-[90px]"
on:click={() => dispatch('close-viewer')}
>
<ImageThumbnail
curve
shadow