mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 01:35:49 +03:00
Update space create menu copy and add link to community migrator
This commit is contained in:
parent
195b8714fc
commit
77cf5bf613
3 changed files with 36 additions and 13 deletions
|
@ -41,7 +41,6 @@ $spacePanelWidth: 71px;
|
||||||
> p {
|
> p {
|
||||||
font-size: $font-15px;
|
font-size: $font-15px;
|
||||||
color: $secondary-fg-color;
|
color: $secondary-fg-color;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_SpaceFeedbackPrompt {
|
.mx_SpaceFeedbackPrompt {
|
||||||
|
@ -51,13 +50,6 @@ $spacePanelWidth: 71px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// XXX remove this when spaces leaves Beta
|
|
||||||
.mx_BetaCard_betaPill {
|
|
||||||
position: absolute;
|
|
||||||
top: 24px;
|
|
||||||
right: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_SpaceCreateMenuType {
|
.mx_SpaceCreateMenuType {
|
||||||
@mixin SpacePillButton;
|
@mixin SpacePillButton;
|
||||||
}
|
}
|
||||||
|
@ -100,6 +92,11 @@ $spacePanelWidth: 71px;
|
||||||
width: min-content;
|
width: min-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_AccessibleButton_kind_link {
|
||||||
|
padding: 0;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.mx_AccessibleButton_disabled {
|
.mx_AccessibleButton_disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,9 @@ import SdkConfig from "../../../SdkConfig";
|
||||||
import Modal from "../../../Modal";
|
import Modal from "../../../Modal";
|
||||||
import GenericFeatureFeedbackDialog from "../dialogs/GenericFeatureFeedbackDialog";
|
import GenericFeatureFeedbackDialog from "../dialogs/GenericFeatureFeedbackDialog";
|
||||||
import SettingsStore from "../../../settings/SettingsStore";
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
import defaultDispatcher from "../../../dispatcher/dispatcher";
|
||||||
|
import { Action } from "../../../dispatcher/actions";
|
||||||
|
import { UserTab } from "../dialogs/UserSettingsDialog";
|
||||||
|
|
||||||
export const createSpace = async (
|
export const createSpace = async (
|
||||||
name: string,
|
name: string,
|
||||||
|
@ -245,10 +248,23 @@ const SpaceCreateMenu = ({ onFinished }) => {
|
||||||
|
|
||||||
let body;
|
let body;
|
||||||
if (visibility === null) {
|
if (visibility === null) {
|
||||||
|
const onCreateSpaceFromCommunityClick = () => {
|
||||||
|
defaultDispatcher.dispatch({
|
||||||
|
action: Action.ViewUserSettings,
|
||||||
|
initialTabId: UserTab.Preferences,
|
||||||
|
});
|
||||||
|
onFinished();
|
||||||
|
};
|
||||||
|
|
||||||
body = <React.Fragment>
|
body = <React.Fragment>
|
||||||
<h2>{ _t("Create a space") }</h2>
|
<h2>{ _t("Create a space") }</h2>
|
||||||
<p>{ _t("Spaces are a new way to group rooms and people. " +
|
<p>
|
||||||
"To join an existing space you'll need an invite.") }</p>
|
{ _t("Spaces are a new way to group rooms and people.") }
|
||||||
|
|
||||||
|
{ _t("What kind of Space do you want to create?") }
|
||||||
|
|
||||||
|
{ _t("You can change this later.") }
|
||||||
|
</p>
|
||||||
|
|
||||||
<SpaceCreateMenuType
|
<SpaceCreateMenuType
|
||||||
title={_t("Public")}
|
title={_t("Public")}
|
||||||
|
@ -263,7 +279,15 @@ const SpaceCreateMenu = ({ onFinished }) => {
|
||||||
onClick={() => setVisibility(Visibility.Private)}
|
onClick={() => setVisibility(Visibility.Private)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<p>{ _t("You can change this later") }</p>
|
<p>
|
||||||
|
{ _t("You can also create a Space from a <a>community</a>.", {}, {
|
||||||
|
a: sub => <AccessibleButton kind="link" onClick={onCreateSpaceFromCommunityClick}>
|
||||||
|
{ sub }
|
||||||
|
</AccessibleButton>,
|
||||||
|
}) }
|
||||||
|
|
||||||
|
{ _t("To join an existing space you'll need an invite") }
|
||||||
|
</p>
|
||||||
|
|
||||||
<SpaceFeedbackPrompt onClick={onFinished} />
|
<SpaceFeedbackPrompt onClick={onFinished} />
|
||||||
</React.Fragment>;
|
</React.Fragment>;
|
||||||
|
|
|
@ -1027,12 +1027,14 @@
|
||||||
"e.g. my-space": "e.g. my-space",
|
"e.g. my-space": "e.g. my-space",
|
||||||
"Address": "Address",
|
"Address": "Address",
|
||||||
"Create a space": "Create a space",
|
"Create a space": "Create a space",
|
||||||
"Spaces are a new way to group rooms and people. To join an existing space you'll need an invite.": "Spaces are a new way to group rooms and people. To join an existing space you'll need an invite.",
|
"What kind of Space do you want to create?": "What kind of Space do you want to create?",
|
||||||
|
"You can change this later.": "You can change this later.",
|
||||||
"Public": "Public",
|
"Public": "Public",
|
||||||
"Open space for anyone, best for communities": "Open space for anyone, best for communities",
|
"Open space for anyone, best for communities": "Open space for anyone, best for communities",
|
||||||
"Private": "Private",
|
"Private": "Private",
|
||||||
"Invite only, best for yourself or teams": "Invite only, best for yourself or teams",
|
"Invite only, best for yourself or teams": "Invite only, best for yourself or teams",
|
||||||
"You can change this later": "You can change this later",
|
"You can also create a Space from a <a>community</a>.": "You can also create a Space from a <a>community</a>.",
|
||||||
|
"To join an existing space you'll need an invite": "To join an existing space you'll need an invite",
|
||||||
"Go back": "Go back",
|
"Go back": "Go back",
|
||||||
"Your public space": "Your public space",
|
"Your public space": "Your public space",
|
||||||
"Your private space": "Your private space",
|
"Your private space": "Your private space",
|
||||||
|
|
Loading…
Reference in a new issue