diff options
| author | Adam <[email protected]> | 2025-12-14 12:51:36 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-14 21:38:58 -0600 |
| commit | 7ade6d386daeea120415b69f9df522001350db7b (patch) | |
| tree | ba0814e4982bd7154d0c1938352e2f55531ef5a8 /packages/desktop/src/pages/layout.tsx | |
| parent | 2613f44961a73bc57db6662bfa1d0407515c497a (diff) | |
| download | opencode-7ade6d386daeea120415b69f9df522001350db7b.tar.gz opencode-7ade6d386daeea120415b69f9df522001350db7b.zip | |
wip(desktop): progress
Diffstat (limited to 'packages/desktop/src/pages/layout.tsx')
| -rw-r--r-- | packages/desktop/src/pages/layout.tsx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/packages/desktop/src/pages/layout.tsx b/packages/desktop/src/pages/layout.tsx index 7b1d0e45a..c36cc234e 100644 --- a/packages/desktop/src/pages/layout.tsx +++ b/packages/desktop/src/pages/layout.tsx @@ -33,6 +33,8 @@ import { useGlobalSDK } from "@/context/global-sdk" import { useNotification } from "@/context/notification" import { Binary } from "@opencode-ai/util/binary" import { Header } from "@/components/header" +import { useDialog } from "@/context/dialog" +import { DialogSelectProvider } from "@/components/dialog-select-provider" export default function Layout(props: ParentProps) { const [store, setStore] = createStore({ @@ -48,6 +50,11 @@ export default function Layout(props: ParentProps) { const notification = useNotification() const navigate = useNavigate() const providers = useProviders() + const dialog = useDialog() + + function connectProvider() { + dialog.replace(() => <DialogSelectProvider />) + } function navigateToProject(directory: string | undefined) { if (!directory) return @@ -488,7 +495,7 @@ export default function Layout(props: ParentProps) { class="flex w-full text-left justify-start text-12-medium text-text-strong stroke-[1.5px] rounded-lg rounded-t-none shadow-none border-t border-border-weak-base pl-2.25 pb-px" size="large" icon="plus" - // onClick={connectProvider} + onClick={connectProvider} > <Show when={layout.sidebar.opened()}>Connect provider</Show> </Button> @@ -502,7 +509,7 @@ export default function Layout(props: ParentProps) { variant="ghost" size="large" icon="plus" - // onClick={connectProvider} + onClick={connectProvider} > <Show when={layout.sidebar.opened()}>Connect provider</Show> </Button> |
