@@ -48,14 +54,26 @@ export class TopLeftMenu extends React.Component {
;
}
+ let signInOutSection;
+ if (isGuest) {
+ signInOutSection =
+
{_t("Sign in")}
+
;
+ } else {
+ signInOutSection =
+
{_t("Sign out")}
+
;
+ }
+
return
{homePageSection}
-
{_t("Settings")}
+
{_t("Welcome")}
-
{_t("Sign out")}
+
{_t("Settings")}
+ {signInOutSection}
;
}
@@ -64,11 +82,21 @@ export class TopLeftMenu extends React.Component {
this.closeMenu();
}
+ viewWelcomePage() {
+ dis.dispatch({action: 'view_welcome_page'});
+ this.closeMenu();
+ }
+
openSettings() {
dis.dispatch({action: 'view_user_settings'});
this.closeMenu();
}
+ signIn() {
+ dis.dispatch({action: 'start_login'});
+ this.closeMenu();
+ }
+
signOut() {
Modal.createTrackedDialog('Logout E2E Export', '', LogoutDialog);
this.closeMenu();
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index cfd2e6e66c..fe41beb7ae 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -1051,7 +1051,6 @@
"Continue With Encryption Disabled": "Continue With Encryption Disabled",
"Unknown error": "Unknown error",
"Incorrect password": "Incorrect password",
- "Deactivate Account": "Deactivate Account",
"This will make your account permanently unusable. You will not be able to log in, and no one will be able to re-register the same user ID. This will cause your account to leave all rooms it is participating in, and it will remove your account details from your identity server. This action is irreversible.": "This will make your account permanently unusable. You will not be able to log in, and no one will be able to re-register the same user ID. This will cause your account to leave all rooms it is participating in, and it will remove your account details from your identity server. This action is irreversible.",
"Deactivating your account does not by default cause us to forget messages you have sent. If you would like us to forget your messages, please tick the box below.": "Deactivating your account does not by default cause us to forget messages you have sent. If you would like us to forget your messages, please tick the box below.",
"Message visibility in Matrix is similar to email. Our forgetting your messages means that messages you have sent will not be shared with any new or unregistered users, but registered users who already have access to these messages will still have access to their copy.": "Message visibility in Matrix is similar to email. Our forgetting your messages means that messages you have sent will not be shared with any new or unregistered users, but registered users who already have access to these messages will still have access to their copy.",
@@ -1221,6 +1220,8 @@
"Set a new status...": "Set a new status...",
"View Community": "View Community",
"Hide": "Hide",
+ "Sign in": "Sign in",
+ "Welcome": "Welcome",
"Login": "Login",
"powered by Matrix": "powered by Matrix",
"Robot check is currently unavailable on desktop - please use a web browser": "Robot check is currently unavailable on desktop - please use a web browser",
@@ -1251,7 +1252,6 @@
"Username": "Username",
"Mobile phone number": "Mobile phone number",
"Not sure of your password? Set a new one": "Not sure of your password? Set a new one",
- "Sign in": "Sign in",
"Sign in to %(serverName)s": "Sign in to %(serverName)s",
"Change": "Change",
"Sign in with": "Sign in with",