Improve setup initiation link
This commit is contained in:
parent
d089eb720f
commit
116f109a62
4 changed files with 17 additions and 4 deletions
|
@ -276,6 +276,9 @@ limitations under the License.
|
|||
.mx_UserMenu_iconHome::before {
|
||||
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 {
|
||||
mask-image: url('$(res)/img/element-icons/notifications.svg');
|
||||
|
|
|
@ -17,6 +17,11 @@ limitations under the License.
|
|||
import * as React from "react";
|
||||
import Modal from "../../Modal";
|
||||
import HostingSignupDialog from "../views/dialogs/HostingSignupDialog";
|
||||
import IconizedContextMenu, {
|
||||
IconizedContextMenuOption,
|
||||
IconizedContextMenuOptionList,
|
||||
} from "../views/context_menus/IconizedContextMenu";
|
||||
import { _t } from "../../languageHandler";
|
||||
|
||||
interface IProps {}
|
||||
|
||||
|
@ -50,9 +55,13 @@ export default class HostingSignupAction extends React.PureComponent<IProps, ISt
|
|||
|
||||
public render(): React.ReactNode {
|
||||
return (
|
||||
<div onClick={this.openDialog} className="mx_HostingSignupAction">
|
||||
Get your own personal Element!
|
||||
</div>
|
||||
<IconizedContextMenuOptionList>
|
||||
<IconizedContextMenuOption
|
||||
iconClassName="mx_UserMenu_iconHosting"
|
||||
label={_t("Get your own Element!")}
|
||||
onClick={(e) => this.openDialog()}
|
||||
/>
|
||||
</IconizedContextMenuOptionList>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -322,7 +322,7 @@ export default class UserMenu extends React.Component<IProps, IState> {
|
|||
const validDomains = hostingSignupDomains.filter(d => (d === mxDomain || mxDomain.endsWith(`.${d}`)));
|
||||
if (!hostingSignupDomains || validDomains.length > 0) {
|
||||
hostingSignupIFrame = <div
|
||||
className="mx_UserMenu_contextMenu_header mx_UserMenu_contextMenu_hostingLink"
|
||||
className=""
|
||||
onClick={this.onCloseMenu}
|
||||
>
|
||||
<HostingSignupAction />
|
||||
|
|
|
@ -2462,6 +2462,7 @@
|
|||
"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>",
|
||||
"Notification settings": "Notification settings",
|
||||
"Get your own Element!": "Get your own Element!",
|
||||
"Security & privacy": "Security & privacy",
|
||||
"All settings": "All settings",
|
||||
"Community settings": "Community settings",
|
||||
|
|
Loading…
Reference in a new issue