From 670b3ef6ef4f84b6c342fc57d2ca3f5c7290d71f Mon Sep 17 00:00:00 2001 From: Nate Date: Mon, 24 Feb 2025 00:35:56 -0800 Subject: [PATCH] hide sign in unless hub enabled --- gui/src/pages/config/index.tsx | 72 +++++++++++++++++----------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/gui/src/pages/config/index.tsx b/gui/src/pages/config/index.tsx index b7d8c5829..4bb02b7e1 100644 --- a/gui/src/pages/config/index.tsx +++ b/gui/src/pages/config/index.tsx @@ -179,43 +179,45 @@ function ConfigPage() { navigate("/")} title="Chat" />
-
-
-

Account

- {!session ? ( -
- You are not signed in. - login(false)}> - Sign in - -
- ) : ( -
- {hubEnabled ? ( - // Hub: show org selector -
- {`Organization`} - -
- ) : ( - // Continue for teams: show org text -
You are using Continue for Teams
- )} -
- - {session.account.label === "" - ? "Signed in" - : `Signed in as ${session.account.label}`} - - {`Sign out`} + {(session || hubEnabled || controlServerBetaEnabled) && ( +
+
+

Account

+ {!session ? ( +
+ You are not signed in. + login(false)}> + Sign in +
-
- )} + ) : ( +
+ {hubEnabled ? ( + // Hub: show org selector +
+ {`Organization`} + +
+ ) : ( + // Continue for teams: show org text +
You are using Continue for Teams
+ )} +
+ + {session.account.label === "" + ? "Signed in" + : `Signed in as ${session.account.label}`} + + {`Sign out`} +
+
+ )} +
-
+ )}