Hide account and team admin UI in single-user mode

The desktop bundle has one local admin and nothing to manage, so the
account pill, the account panel and the team administration panel are
left out when the server reports local mode.
This commit is contained in:
2026-11-28 18:39:06 +00:00
parent b79f6c9a4e
commit 4beaaacf0e
3 changed files with 19 additions and 6 deletions
+8 -2
View File
@@ -2221,6 +2221,11 @@ export default function App() {
);
}
// The Windows desktop bundle runs as one local admin (LUMINARY_LOCAL=1).
// Accounts and team administration have nothing to manage there, so both
// panels and the entry point to them stay out of the UI.
const localMode = cloudHealth?.local === true;
return (
<div className="app">
<TopBar
@@ -2230,6 +2235,7 @@ export default function App() {
selectedCount={selected.length}
cloudLabel={cloudUser ? cloudUser.name || cloudUser.email : cloudHealth ? 'Sign in' : 'Local only'}
cloudOn={!!cloudUser}
localMode={localMode}
onViewChange={(v) => {
setCatalogOpen(false);
if (v === 'develop' && !activePhoto) {
@@ -2646,7 +2652,7 @@ export default function App() {
</div>
)}
{cloudOpen && (
{cloudOpen && !localMode && (
<CloudPanel
health={cloudHealth}
user={cloudUser}
@@ -2669,7 +2675,7 @@ export default function App() {
/>
)}
{adminOpen && cloudUser && (
{adminOpen && cloudUser && !localMode && (
<AdminPanel
user={cloudUser}
onClose={() => setAdminOpen(false)}