mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05: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 {
 | 
					    try {
 | 
				
			||||||
      await api.personApi.updatePerson({
 | 
					      await api.personApi.updatePerson({
 | 
				
			||||||
        id: data.person.id,
 | 
					        id: data.person.id,
 | 
				
			||||||
        personUpdateDto: { isHidden: true },
 | 
					        personUpdateDto: { isHidden: !data.person.isHidden },
 | 
				
			||||||
      });
 | 
					      });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      notificationController.show({
 | 
					      notificationController.show({
 | 
				
			||||||
@ -382,7 +382,7 @@
 | 
				
			|||||||
            <MenuOption text="Change feature photo" on:click={() => (viewMode = ViewMode.SELECT_FACE)} />
 | 
					            <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="Set date of birth" on:click={() => (viewMode = ViewMode.BIRTH_DATE)} />
 | 
				
			||||||
            <MenuOption text="Merge face" on:click={() => (viewMode = ViewMode.MERGE_FACES)} />
 | 
					            <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>
 | 
					          </AssetSelectContextMenu>
 | 
				
			||||||
        </svelte:fragment>
 | 
					        </svelte:fragment>
 | 
				
			||||||
      </ControlAppBar>
 | 
					      </ControlAppBar>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user