ignore: cloud
This commit is contained in:
parent
151ff05381
commit
3f225e3248
1 changed files with 3 additions and 4 deletions
|
|
@ -7,7 +7,7 @@ import IMG_SPLASH from "../asset/lander/screenshot-splash.png"
|
|||
import IMG_VSCODE from "../asset/lander/screenshot-vscode.png"
|
||||
import IMG_GITHUB from "../asset/lander/screenshot-github.png"
|
||||
import { IconCopy, IconCheck } from "../component/icon"
|
||||
import { A, createAsync, query, redirect } from "@solidjs/router"
|
||||
import { A, createAsync, query } from "@solidjs/router"
|
||||
import { getActor, withActor } from "~/context/auth"
|
||||
import { Account } from "@opencode/cloud-core/account.js"
|
||||
|
||||
|
|
@ -26,7 +26,6 @@ const isLoggedIn = query(async () => {
|
|||
if (actor.type === "account") {
|
||||
const workspaces = await withActor(() => Account.workspaces())
|
||||
return workspaces[0].id
|
||||
// throw redirect("/" + workspaces[0].id)
|
||||
}
|
||||
return false
|
||||
}, "isLoggedIn")
|
||||
|
|
@ -84,8 +83,8 @@ export default function Home() {
|
|||
</div>
|
||||
<div data-slot="right">
|
||||
{workspaceId()
|
||||
? <A href={`/workspace/${workspaceId()}`}>Dashboard</A>
|
||||
: <A href="/auth/authorize">Login</A>
|
||||
? <A href={`/${workspaceId()}`}>Dashboard</A>
|
||||
: <a href="/auth/authorize" target="_self">Login</a>
|
||||
}
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue