mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-22 18:00:17 +01:00
fix cloud mode for teams
This commit is contained in:
parent
e8d8a8a84a
commit
7c1cb7631d
@ -8,7 +8,7 @@ import TeamsAddButton from './TeamsAddButton';
|
|||||||
export function TeamsHeader({ allowCreate = true }: { allowCreate?: boolean }) {
|
export function TeamsHeader({ allowCreate = true }: { allowCreate?: boolean }) {
|
||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
const { user } = useLogin();
|
const { user } = useLogin();
|
||||||
const cloudMode = process.env.CLOUD_MODE;
|
const cloudMode = !!process.env.cloudMode;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PageHeader title={formatMessage(labels.teams)}>
|
<PageHeader title={formatMessage(labels.teams)}>
|
||||||
|
@ -26,7 +26,7 @@ export function TeamEditForm({ teamId, allowEdit }: { teamId: string; allowEdit?
|
|||||||
const ref = useRef(null);
|
const ref = useRef(null);
|
||||||
const [accessCode, setAccessCode] = useState(team.accessCode);
|
const [accessCode, setAccessCode] = useState(team.accessCode);
|
||||||
const { showToast } = useToasts();
|
const { showToast } = useToasts();
|
||||||
const cloudMode = process.env.CLOUD_MODE;
|
const cloudMode = !!process.env.cloudMode;
|
||||||
|
|
||||||
const handleSubmit = async (data: any) => {
|
const handleSubmit = async (data: any) => {
|
||||||
mutate(data, {
|
mutate(data, {
|
||||||
|
Loading…
Reference in New Issue
Block a user