diff --git a/rsconcept/frontend/src/app/navigation/navigation.tsx b/rsconcept/frontend/src/app/navigation/navigation.tsx index cd29a745..a6ed8245 100644 --- a/rsconcept/frontend/src/app/navigation/navigation.tsx +++ b/rsconcept/frontend/src/app/navigation/navigation.tsx @@ -3,6 +3,7 @@ import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons'; import { useWindowSize } from '@/hooks/use-window-size'; import { useAppLayoutStore } from '@/stores/app-layout'; +import { useDialogsStore } from '@/stores/dialogs'; import { urls } from '../urls'; @@ -16,6 +17,7 @@ export function Navigation() { const { push } = useConceptNavigation(); const size = useWindowSize(); const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); + const activeDialog = useDialogsStore(state => state.active); const navigateHome = (event: React.MouseEvent) => push({ path: urls.home, newTab: event.ctrlKey || event.metaKey }); @@ -27,7 +29,7 @@ export function Navigation() { push({ path: urls.create_schema, newTab: event.ctrlKey || event.metaKey }); return ( -