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
+9 -4
View File
@@ -7,6 +7,8 @@ interface Props {
selectedCount: number;
cloudLabel: string;
cloudOn: boolean;
/** Desktop mode has no account, so the team-server button is not shown. */
localMode?: boolean;
onViewChange: (view: ViewMode) => void;
onImport: () => void;
onExport: () => void;
@@ -25,6 +27,7 @@ export default function TopBar({
selectedCount,
cloudLabel,
cloudOn,
localMode = false,
onViewChange,
onImport,
onExport,
@@ -70,10 +73,12 @@ export default function TopBar({
</nav>
<div className="topbar-actions">
<button className={`cloud-pill ${cloudOn ? 'on' : ''}`} onClick={onCloud} title="Team server">
<span className="cloud-dot" />
{cloudLabel}
</button>
{!localMode && (
<button className={`cloud-pill ${cloudOn ? 'on' : ''}`} onClick={onCloud} title="Team server">
<span className="cloud-dot" />
{cloudLabel}
</button>
)}
{canShare && (
<button className="btn ghost" onClick={onShare} title="Share this event for client proofing">
Share