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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user