Improve setup initiation link

This commit is contained in:
Richard Lewis 2020-11-24 17:18:26 +00:00 committed by Jason Robinson
parent d089eb720f
commit 116f109a62
4 changed files with 17 additions and 4 deletions

View file

@ -276,6 +276,9 @@ limitations under the License.
.mx_UserMenu_iconHome::before { .mx_UserMenu_iconHome::before {
mask-image: url('$(res)/img/element-icons/roomlist/home.svg'); mask-image: url('$(res)/img/element-icons/roomlist/home.svg');
} }
.mx_UserMenu_iconHosting::before {
mask-image: url('$(res)/img/element-icons/roomlist/home.svg');
}
.mx_UserMenu_iconBell::before { .mx_UserMenu_iconBell::before {
mask-image: url('$(res)/img/element-icons/notifications.svg'); mask-image: url('$(res)/img/element-icons/notifications.svg');

View file

@ -17,6 +17,11 @@ limitations under the License.
import * as React from "react"; import * as React from "react";
import Modal from "../../Modal"; import Modal from "../../Modal";
import HostingSignupDialog from "../views/dialogs/HostingSignupDialog"; import HostingSignupDialog from "../views/dialogs/HostingSignupDialog";
import IconizedContextMenu, {
IconizedContextMenuOption,
IconizedContextMenuOptionList,
} from "../views/context_menus/IconizedContextMenu";
import { _t } from "../../languageHandler";
interface IProps {} interface IProps {}
@ -50,9 +55,13 @@ export default class HostingSignupAction extends React.PureComponent<IProps, ISt
public render(): React.ReactNode { public render(): React.ReactNode {
return ( return (
<div onClick={this.openDialog} className="mx_HostingSignupAction"> <IconizedContextMenuOptionList>
Get your own personal Element! <IconizedContextMenuOption
</div> iconClassName="mx_UserMenu_iconHosting"
label={_t("Get your own Element!")}
onClick={(e) => this.openDialog()}
/>
</IconizedContextMenuOptionList>
); );
} }
} }

View file

@ -322,7 +322,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
const validDomains = hostingSignupDomains.filter(d => (d === mxDomain || mxDomain.endsWith(`.${d}`))); const validDomains = hostingSignupDomains.filter(d => (d === mxDomain || mxDomain.endsWith(`.${d}`)));
if (!hostingSignupDomains || validDomains.length > 0) { if (!hostingSignupDomains || validDomains.length > 0) {
hostingSignupIFrame = <div hostingSignupIFrame = <div
className="mx_UserMenu_contextMenu_header mx_UserMenu_contextMenu_hostingLink" className=""
onClick={this.onCloseMenu} onClick={this.onCloseMenu}
> >
<HostingSignupAction /> <HostingSignupAction />

View file

@ -2462,6 +2462,7 @@
"Got an account? <a>Sign in</a>": "Got an account? <a>Sign in</a>", "Got an account? <a>Sign in</a>": "Got an account? <a>Sign in</a>",
"New here? <a>Create an account</a>": "New here? <a>Create an account</a>", "New here? <a>Create an account</a>": "New here? <a>Create an account</a>",
"Notification settings": "Notification settings", "Notification settings": "Notification settings",
"Get your own Element!": "Get your own Element!",
"Security & privacy": "Security & privacy", "Security & privacy": "Security & privacy",
"All settings": "All settings", "All settings": "All settings",
"Community settings": "Community settings", "Community settings": "Community settings",