diff --git a/res/themes/dharma/css/_dharma.scss b/res/themes/dharma/css/_dharma.scss
index 0851762be20..08a287ad718 100644
--- a/res/themes/dharma/css/_dharma.scss
+++ b/res/themes/dharma/css/_dharma.scss
@@ -186,6 +186,8 @@ $lightbox-border-color: #ffffff;
// unused?
$progressbar-color: #000;
+$room-warning-bg-color: #fff8e3;
+
/*** form elements ***/
// .mx_textinput is a container for a text input
@@ -320,3 +322,11 @@ input[type=search]::-webkit-search-results-decoration {
font-size: 15px;
padding: 0px 1.5em 0px 1.5em;
}
+
+@define-mixin mx_DialogButton_secondary {
+ // flip colours for the secondary ones
+ font-weight: 600;
+ border: 1px solid $accent-color ! important;
+ color: $accent-color;
+ background-color: $accent-fg-color;
+}
diff --git a/src/components/structures/HomePage.js b/src/components/structures/HomePage.js
index 01aabf61151..8f0c270513d 100644
--- a/src/components/structures/HomePage.js
+++ b/src/components/structures/HomePage.js
@@ -91,11 +91,15 @@ class HomePage extends React.Component {
this._unmounted = true;
}
- onLoginClick() {
+ onLoginClick(ev) {
+ ev.preventDefault();
+ ev.stopPropagation();
dis.dispatch({ action: 'start_login' });
}
- onRegisterClick() {
+ onRegisterClick(ev) {
+ ev.preventDefault();
+ ev.stopPropagation();
dis.dispatch({ action: 'start_registration' });
}
diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js
index b01174a91c9..a03265da1c8 100644
--- a/src/components/structures/MatrixChat.js
+++ b/src/components/structures/MatrixChat.js
@@ -927,6 +927,10 @@ export default React.createClass({
},
_viewHome: function() {
+ // The home page requires the "logged in" view, so we'll set that.
+ this.setStateForNewView({
+ view: VIEWS.LOGGED_IN,
+ });
this._setPage(PageTypes.HomePage);
this.notifyNewScreen('home');
},
@@ -1183,10 +1187,7 @@ export default React.createClass({
* @param {string} teamToken
*/
_onLoggedIn: async function(teamToken) {
- this.setState({
- view: VIEWS.LOGGED_IN,
- });
-
+ this.setStateForNewView({view: VIEWS.LOGGED_IN});
if (teamToken) {
// A team member has logged in, not a guest
this._teamToken = teamToken;
diff --git a/src/components/structures/login/ForgotPassword.js b/src/components/structures/login/ForgotPassword.js
index 559136948ac..5c0e4283397 100644
--- a/src/components/structures/login/ForgotPassword.js
+++ b/src/components/structures/login/ForgotPassword.js
@@ -162,6 +162,18 @@ module.exports = React.createClass({
this.setState(newState);
},
+ onLoginClick: function(ev) {
+ ev.preventDefault();
+ ev.stopPropagation();
+ this.props.onLoginClick();
+ },
+
+ onRegisterClick: function(ev) {
+ ev.preventDefault();
+ ev.stopPropagation();
+ this.props.onRegisterClick();
+ },
+
showErrorDialog: function(body, title) {
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
Modal.createTrackedDialog('Forgot Password Error', '', ErrorDialog, {
@@ -253,10 +265,10 @@ module.exports = React.createClass({
{ serverConfigSection }
{ errorText }
-
+
{ _t('Return to login screen') }
-
+
{ _t('Create an account') }