mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	hide birdseye nav if not enabled
This commit is contained in:
		
							parent
							
								
									65855e23d9
								
							
						
					
					
						commit
						b8df419bad
					
				| @ -10,6 +10,7 @@ import NavigationDrawer, { Destination, Separator } from './components/Navigatio | ||||
| export default function Sidebar() { | ||||
|   const { data: config } = useConfig(); | ||||
|   const cameras = useMemo(() => Object.entries(config.cameras), [config]); | ||||
|   const { birdseye } = config; | ||||
| 
 | ||||
|   return ( | ||||
|     <NavigationDrawer header={<Header />}> | ||||
| @ -49,7 +50,7 @@ export default function Sidebar() { | ||||
|           ) : null | ||||
|         } | ||||
|       </Match> | ||||
|       <Destination href="/birdseye" text="Birdseye" /> | ||||
|       {birdseye?.enabled ? <Destination href="/birdseye" text="Birdseye" /> : null} | ||||
|       <Destination href="/events" text="Events" /> | ||||
|       <Destination href="/debug" text="Debug" /> | ||||
|       <Separator /> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user