diff --git a/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx b/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx index 781d60437..b2604501c 100644 --- a/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx +++ b/gui/src/components/modelSelection/platform/AssistantSelectOptions.tsx @@ -11,6 +11,8 @@ import AboutAssistantDialog from "../../dialogs/AboutAssistantDialog"; import { Divider, Option, OptionDiv } from "./shared"; import { getProfileDisplayText } from "./utils"; import AssistantIcon from "./AssistantIcon"; +import { useNavigate } from "react-router-dom"; +import { ROUTES } from "../../../util/navigation"; interface AssistantSelectOptionsProps { onClose: () => void; @@ -18,8 +20,9 @@ interface AssistantSelectOptionsProps { export function AssistantSelectOptions(props: AssistantSelectOptionsProps) { const ideMessenger = useContext(IdeMessengerContext); - const { profiles, selectedProfile } = useAuth(); + const { profiles, selectedProfile, selectedOrganization } = useAuth(); const dispatch = useAppDispatch(); + const navigate = useNavigate(); function onNewAssistant() { ideMessenger.post("controlPlane/openUrl", { @@ -52,8 +55,11 @@ export function AssistantSelectOptions(props: AssistantSelectOptionsProps) { return (
-
- Available Assistants +
navigate(ROUTES.CONFIG)} + > + {selectedOrganization?.name || "Personal"} Assistants