mirror of
https://github.com/immich-app/immich.git
synced 2024-11-15 18:08:48 -07:00
chore(web): toggle hide face in context menu (#5440)
This commit is contained in:
parent
8a2b36ad55
commit
36ba48b8ae
@ -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 @@
|
||||
<MenuOption text="Change feature photo" on:click={() => (viewMode = ViewMode.SELECT_FACE)} />
|
||||
<MenuOption text="Set date of birth" on:click={() => (viewMode = ViewMode.BIRTH_DATE)} />
|
||||
<MenuOption text="Merge face" on:click={() => (viewMode = ViewMode.MERGE_FACES)} />
|
||||
<MenuOption text="Hide face" on:click={() => hideFace()} />
|
||||
<MenuOption text={data.person.isHidden ? 'Unhide face' : 'Hide face'} on:click={() => toggleHideFace()} />
|
||||
</AssetSelectContextMenu>
|
||||
</svelte:fragment>
|
||||
</ControlAppBar>
|
||||
|
Loading…
Reference in New Issue
Block a user