From 5374afc9c83a3a653134d90c7193e7155e96808d Mon Sep 17 00:00:00 2001 From: dswbx Date: Tue, 3 Dec 2024 17:09:27 +0100 Subject: [PATCH 1/2] remove the quick theme switcher if admin settings are overridden --- app/src/ui/layouts/AppShell/Header.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/ui/layouts/AppShell/Header.tsx b/app/src/ui/layouts/AppShell/Header.tsx index 4082391..7fb311d 100644 --- a/app/src/ui/layouts/AppShell/Header.tsx +++ b/app/src/ui/layouts/AppShell/Header.tsx @@ -146,6 +146,7 @@ export function Header({ hasSidebar = true }) { } function UserMenu() { + const { adminOverride } = useBknd(); const auth = useAuth(); const [navigate] = useNavigate(); const { logout_route } = useBkndWindowContext(); @@ -170,7 +171,9 @@ function UserMenu() { items.push({ label: `Logout ${auth.user.email}`, onClick: handleLogout, icon: IconKeyOff }); } - items.push(() => ); + if (!adminOverride) { + items.push(() => ); + } return ( <> From 0184f47a41c328e250bf9687b0e34dcfdb919c2d Mon Sep 17 00:00:00 2001 From: dswbx Date: Tue, 3 Dec 2024 17:15:53 +0100 Subject: [PATCH 2/2] added prototype to the list of exports from "bknd/data" --- app/src/data/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/data/index.ts b/app/src/data/index.ts index 674d490..f4a67bc 100644 --- a/app/src/data/index.ts +++ b/app/src/data/index.ts @@ -4,6 +4,7 @@ export * from "./fields"; export * from "./entities"; export * from "./relations"; export * from "./schema/SchemaManager"; +export * from "./prototype"; export { type RepoQuery,