Merge pull request #629 from langflow-ai/fix-setup-option-inaccessible
fix: Setup option inaccessible but available
This commit is contained in:
commit
015a4d955e
1 changed files with 12 additions and 10 deletions
|
|
@ -15,6 +15,7 @@ import {
|
||||||
} from "@/components/provider-health-banner";
|
} from "@/components/provider-health-banner";
|
||||||
import { TaskNotificationMenu } from "@/components/task-notification-menu";
|
import { TaskNotificationMenu } from "@/components/task-notification-menu";
|
||||||
import { useAuth } from "@/contexts/auth-context";
|
import { useAuth } from "@/contexts/auth-context";
|
||||||
|
import { useChat } from "@/contexts/chat-context";
|
||||||
import { useKnowledgeFilter } from "@/contexts/knowledge-filter-context";
|
import { useKnowledgeFilter } from "@/contexts/knowledge-filter-context";
|
||||||
import { useTask } from "@/contexts/task-context";
|
import { useTask } from "@/contexts/task-context";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
@ -27,6 +28,7 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) {
|
||||||
const { isMenuOpen } = useTask();
|
const { isMenuOpen } = useTask();
|
||||||
const { isPanelOpen } = useKnowledgeFilter();
|
const { isPanelOpen } = useKnowledgeFilter();
|
||||||
const { isLoading, isAuthenticated, isNoAuthMode } = useAuth();
|
const { isLoading, isAuthenticated, isNoAuthMode } = useAuth();
|
||||||
|
const { isOnboardingComplete } = useChat();
|
||||||
|
|
||||||
// List of paths that should not show navigation
|
// List of paths that should not show navigation
|
||||||
const authPaths = ["/login", "/auth/callback"];
|
const authPaths = ["/login", "/auth/callback"];
|
||||||
|
|
@ -93,7 +95,7 @@ export function LayoutWrapper({ children }: { children: React.ReactNode }) {
|
||||||
>
|
>
|
||||||
<DoclingHealthBanner />
|
<DoclingHealthBanner />
|
||||||
</AnimatedConditional>
|
</AnimatedConditional>
|
||||||
{settings?.edited && (
|
{settings?.edited && isOnboardingComplete && (
|
||||||
<AnimatedConditional
|
<AnimatedConditional
|
||||||
vertical
|
vertical
|
||||||
isOpen={isProviderUnhealthy}
|
isOpen={isProviderUnhealthy}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue