diff --git a/frontend/app/Router.js b/frontend/app/Router.js index edacf56c5..c3a1721a6 100644 --- a/frontend/app/Router.js +++ b/frontend/app/Router.js @@ -102,7 +102,7 @@ class Router extends React.Component { this.props.fetchTenants(); } - if (!prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login() && this.state.destinationPath !== '/') { + if (this.state.destinationPath && !prevProps.isLoggedIn && this.props.isLoggedIn && this.state.destinationPath !== routes.login() && this.state.destinationPath !== '/') { this.props.history.push(this.state.destinationPath); this.setState({ destinationPath: null }); } diff --git a/frontend/app/components/Client/ManageUsers/ManageUsers.js b/frontend/app/components/Client/ManageUsers/ManageUsers.js index e157db019..9071ee46b 100644 --- a/frontend/app/components/Client/ManageUsers/ManageUsers.js +++ b/frontend/app/components/Client/ManageUsers/ManageUsers.js @@ -33,7 +33,7 @@ const LIMIT_WARNING = 'You have reached users limit.'; generateInviteLink, fetchRoles }) -@withPageTitle('Users - OpenReplay Preferences') +@withPageTitle('Team - OpenReplay Preferences') class ManageUsers extends React.PureComponent { state = { showModal: false, remaining: this.props.account.limits.teamMember.remaining, invited: false } diff --git a/frontend/app/components/Client/Notifications/Notifications.js b/frontend/app/components/Client/Notifications/Notifications.js index 08db0a3b9..31e6e3699 100644 --- a/frontend/app/components/Client/Notifications/Notifications.js +++ b/frontend/app/components/Client/Notifications/Notifications.js @@ -5,6 +5,7 @@ import { Checkbox } from 'UI' import { connect } from 'react-redux' import { withRequest } from 'HOCs' import { fetch as fetchConfig, edit as editConfig, save as saveConfig } from 'Duck/config' +import withPageTitle from 'HOCs/withPageTitle'; function Notifications(props) { const { config } = props; @@ -42,4 +43,4 @@ function Notifications(props) { export default connect(state => ({ config: state.getIn(['config', 'options']) -}), { fetchConfig, editConfig, saveConfig })(Notifications) +}), { fetchConfig, editConfig, saveConfig })(withPageTitle('Notifications - OpenReplay Preferences')(Notifications)); diff --git a/frontend/app/components/Client/PreferencesMenu/PreferencesMenu.js b/frontend/app/components/Client/PreferencesMenu/PreferencesMenu.js index fa3d51db9..0c57c1ab7 100644 --- a/frontend/app/components/Client/PreferencesMenu/PreferencesMenu.js +++ b/frontend/app/components/Client/PreferencesMenu/PreferencesMenu.js @@ -68,25 +68,25 @@ function PreferencesMenu({ activeTab, appearance, history, isEnterprise }) { /> -