diff options
| author | Frank <[email protected]> | 2025-10-10 09:03:49 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-10-10 09:03:49 -0400 |
| commit | c9155c117a0fe821f7a7b6cacb2713b3930211c7 (patch) | |
| tree | 6fbadbefe48ce02eb8138d80f6cd9ba30218cdbc | |
| parent | 593d0737b5330b33a560ab40004e7eaa693f5251 (diff) | |
| download | opencode-c9155c117a0fe821f7a7b6cacb2713b3930211c7.tar.gz opencode-c9155c117a0fe821f7a7b6cacb2713b3930211c7.zip | |
wip: zen
| -rw-r--r-- | packages/console/app/src/routes/workspace/[id]/index.tsx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/console/app/src/routes/workspace/[id]/index.tsx b/packages/console/app/src/routes/workspace/[id]/index.tsx index a5a8bb469..3716674a7 100644 --- a/packages/console/app/src/routes/workspace/[id]/index.tsx +++ b/packages/console/app/src/routes/workspace/[id]/index.tsx @@ -4,8 +4,14 @@ import { UsageSection } from "./usage-section" import { ModelSection } from "./model-section" import { ProviderSection } from "./provider-section" import { IconLogo } from "~/component/icon" +import { createAsync, useParams } from "@solidjs/router" +import { querySessionInfo } from "../common" +import { Show } from "solid-js" export default function () { + const params = useParams() + const userInfo = createAsync(() => querySessionInfo(params.id)) + return ( <div data-page="workspace-[id]"> <section data-component="title-section"> @@ -22,7 +28,9 @@ export default function () { <div data-slot="sections"> <NewUserSection /> <ModelSection /> - <ProviderSection /> + <Show when={userInfo()?.isAdmin}> + <ProviderSection /> + </Show> <UsageSection /> </div> </div> |
