diff options
author | 2021-10-27 07:25:26 +0530 | |
---|---|---|
committer | 2021-10-27 07:25:26 +0530 | |
commit | 477bdd76a7405ff10a5cfabdec00ee9ae02f2698 (patch) | |
tree | bfa8cfb70e6852b9f535ccfd9b05712269a70dc1 /src/components/settings/navigation/SettingsNavigation.js | |
parent | Bumped up ferdi beta version to '5.6.3-beta.2' (diff) | |
parent | 5.6.3-nightly.44 [skip ci] (diff) | |
download | ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.tar.gz ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.tar.zst ferdium-app-477bdd76a7405ff10a5cfabdec00ee9ae02f2698.zip |
Merge branch 'nightly' into release
Diffstat (limited to 'src/components/settings/navigation/SettingsNavigation.js')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index 18a71fdeb..dbb1365b0 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -6,7 +6,6 @@ import { RouterStore } from 'mobx-react-router'; | |||
6 | 6 | ||
7 | import { LOCAL_SERVER, LIVE_FERDI_API, LIVE_FRANZ_API } from '../../../config'; | 7 | import { LOCAL_SERVER, LIVE_FERDI_API, LIVE_FRANZ_API } from '../../../config'; |
8 | import Link from '../../ui/Link'; | 8 | import Link from '../../ui/Link'; |
9 | import { workspaceStore } from '../../../features/workspaces'; | ||
10 | import UIStore from '../../../stores/UIStore'; | 9 | import UIStore from '../../../stores/UIStore'; |
11 | import SettingsStore from '../../../stores/SettingsStore'; | 10 | import SettingsStore from '../../../stores/SettingsStore'; |
12 | import UserStore from '../../../stores/UserStore'; | 11 | import UserStore from '../../../stores/UserStore'; |
@@ -117,17 +116,15 @@ class SettingsNavigation extends Component { | |||
117 | {intl.formatMessage(messages.yourServices)}{' '} | 116 | {intl.formatMessage(messages.yourServices)}{' '} |
118 | <span className="badge">{serviceCount}</span> | 117 | <span className="badge">{serviceCount}</span> |
119 | </Link> | 118 | </Link> |
120 | {workspaceStore.isFeatureEnabled ? ( | 119 | <Link |
121 | <Link | 120 | to="/settings/workspaces" |
122 | to="/settings/workspaces" | 121 | className="settings-navigation__link" |
123 | className="settings-navigation__link" | 122 | activeClassName="is-active" |
124 | activeClassName="is-active" | 123 | disabled={!isLoggedIn} |
125 | disabled={!isLoggedIn} | 124 | > |
126 | > | 125 | {intl.formatMessage(messages.yourWorkspaces)}{' '} |
127 | {intl.formatMessage(messages.yourWorkspaces)}{' '} | 126 | <span className="badge">{workspaceCount}</span> |
128 | <span className="badge">{workspaceCount}</span> | 127 | </Link> |
129 | </Link> | ||
130 | ) : null} | ||
131 | {!isUsingWithoutAccount && ( | 128 | {!isUsingWithoutAccount && ( |
132 | <Link | 129 | <Link |
133 | to="/settings/user" | 130 | to="/settings/user" |