mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-21 10:42:33 +00:00
desktop: fix isLocal
This commit is contained in:
parent
3aaf29b693
commit
4a5823562c
1 changed files with 4 additions and 1 deletions
|
|
@ -187,10 +187,13 @@ export const { use: useServer, provider: ServerProvider } = createSimpleContext(
|
|||
|
||||
const origin = createMemo(() => projectsKey(state.active))
|
||||
const projectsList = createMemo(() => store.projects[origin()] ?? [])
|
||||
const isLocal = createMemo(() => origin() === "local")
|
||||
const current: Accessor<ServerConnection.Any | undefined> = createMemo(
|
||||
() => allServers().find((s) => ServerConnection.key(s) === state.active) ?? allServers()[0],
|
||||
)
|
||||
const isLocal = createMemo(() => {
|
||||
const c = current()
|
||||
return c?.type === "sidecar" && c.variant === "base"
|
||||
})
|
||||
|
||||
return {
|
||||
ready: isReady,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue