From 36ba48b8ae6edf19afe60813ce9e2de366d54fc3 Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 2 Dec 2023 09:23:11 -0600 Subject: [PATCH] chore(web): toggle hide face in context menu (#5440) --- web/src/routes/(user)/people/[personId]/+page.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/routes/(user)/people/[personId]/+page.svelte b/web/src/routes/(user)/people/[personId]/+page.svelte index efd0c46ab7..ca2ba98138 100644 --- a/web/src/routes/(user)/people/[personId]/+page.svelte +++ b/web/src/routes/(user)/people/[personId]/+page.svelte @@ -155,11 +155,11 @@ } }); - const hideFace = async () => { + const toggleHideFace = async () => { try { await api.personApi.updatePerson({ id: data.person.id, - personUpdateDto: { isHidden: true }, + personUpdateDto: { isHidden: !data.person.isHidden }, }); notificationController.show({ @@ -382,7 +382,7 @@ (viewMode = ViewMode.SELECT_FACE)} /> (viewMode = ViewMode.BIRTH_DATE)} /> (viewMode = ViewMode.MERGE_FACES)} /> - hideFace()} /> + toggleHideFace()} />