summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/navbar.jsx4
-rw-r--r--webapp/components/navbar_dropdown.jsx2
2 files changed, 2 insertions, 4 deletions
diff --git a/webapp/components/navbar.jsx b/webapp/components/navbar.jsx
index b9dea4370..1e7711d2c 100644
--- a/webapp/components/navbar.jsx
+++ b/webapp/components/navbar.jsx
@@ -180,9 +180,7 @@ export default class Navbar extends React.Component {
showChannelSwitchModal(e) {
if (Utils.cmdOrCtrlPressed(e) && e.keyCode === Constants.KeyCodes.K) {
e.preventDefault();
- this.setState({
- showChannelSwitchModal: true
- });
+ this.setState({showChannelSwitchModal: !this.state.showChannelSwitchModal});
}
}
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx
index 8eb0a93a9..4912b8ebf 100644
--- a/webapp/components/navbar_dropdown.jsx
+++ b/webapp/components/navbar_dropdown.jsx
@@ -77,7 +77,7 @@ export default class NavbarDropdown extends React.Component {
openAccountSettings(e) {
if (Utils.cmdOrCtrlPressed(e) && e.shiftKey && e.keyCode === Constants.KeyCodes.A) {
e.preventDefault();
- this.setState({showUserSettingsModal: true});
+ this.setState({showUserSettingsModal: !this.state.showUserSettingsModal});
}
}