mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 19:15:37 +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
|
|
@ -26,6 +26,7 @@ export function TeamEditForm({ teamId, allowEdit }: { teamId: string; allowEdit?
|
|||
const ref = useRef(null);
|
||||
const [accessCode, setAccessCode] = useState(team.accessCode);
|
||||
const { showToast } = useToasts();
|
||||
const cloudMode = process.env.CLOUD_MODE;
|
||||
|
||||
const handleSubmit = async (data: any) => {
|
||||
mutate(data, {
|
||||
|
|
@ -58,7 +59,7 @@ export function TeamEditForm({ teamId, allowEdit }: { teamId: string; allowEdit?
|
|||
)}
|
||||
{!allowEdit && team.name}
|
||||
</FormRow>
|
||||
{allowEdit && (
|
||||
{!cloudMode && allowEdit && (
|
||||
<FormRow label={formatMessage(labels.accessCode)}>
|
||||
<Flexbox gap={10}>
|
||||
<TextField value={accessCode} readOnly allowCopy />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue