mirror of
https://github.com/umami-software/umami.git
synced 2026-02-20 04:25:39 +01:00
Remove team access code functionality from cloud mode
This commit is contained in:
parent
d62dd3be44
commit
6b381e7157
2 changed files with 4 additions and 2 deletions
|
|
@ -8,11 +8,12 @@ import TeamsAddButton from './TeamsAddButton';
|
|||
export function TeamsHeader({ allowCreate = true }: { allowCreate?: boolean }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { user } = useLogin();
|
||||
const cloudMode = process.env.CLOUD_MODE;
|
||||
|
||||
return (
|
||||
<PageHeader title={formatMessage(labels.teams)}>
|
||||
<Flexbox gap={10}>
|
||||
<TeamsJoinButton />
|
||||
{!cloudMode && <TeamsJoinButton />}
|
||||
{allowCreate && user.role !== ROLES.viewOnly && <TeamsAddButton />}
|
||||
</Flexbox>
|
||||
</PageHeader>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue