diff options
author | 2019-03-21 16:30:13 +0100 | |
---|---|---|
committer | 2019-03-21 16:30:59 +0100 | |
commit | af55b33800eeed36b50b1967da694acbb3991ecb (patch) | |
tree | f82e5d9c8a9343034b20d988760b685780024cac /src/components | |
parent | add tooltip to add workspace button in drawer (diff) | |
download | ferdium-app-af55b33800eeed36b50b1967da694acbb3991ecb.tar.gz ferdium-app-af55b33800eeed36b50b1967da694acbb3991ecb.tar.zst ferdium-app-af55b33800eeed36b50b1967da694acbb3991ecb.zip |
add workspaces count badge in settings navigation
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index 4a80bb126..3f570f3b6 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -39,6 +39,7 @@ const messages = defineMessages({ | |||
39 | export default @inject('stores') @observer class SettingsNavigation extends Component { | 39 | export default @inject('stores') @observer class SettingsNavigation extends Component { |
40 | static propTypes = { | 40 | static propTypes = { |
41 | serviceCount: PropTypes.number.isRequired, | 41 | serviceCount: PropTypes.number.isRequired, |
42 | workspaceCount: PropTypes.number.isRequired, | ||
42 | }; | 43 | }; |
43 | 44 | ||
44 | static contextTypes = { | 45 | static contextTypes = { |
@@ -46,7 +47,7 @@ export default @inject('stores') @observer class SettingsNavigation extends Comp | |||
46 | }; | 47 | }; |
47 | 48 | ||
48 | render() { | 49 | render() { |
49 | const { serviceCount } = this.props; | 50 | const { serviceCount, workspaceCount } = this.props; |
50 | const { intl } = this.context; | 51 | const { intl } = this.context; |
51 | 52 | ||
52 | return ( | 53 | return ( |
@@ -74,6 +75,7 @@ export default @inject('stores') @observer class SettingsNavigation extends Comp | |||
74 | > | 75 | > |
75 | {intl.formatMessage(messages.yourWorkspaces)} | 76 | {intl.formatMessage(messages.yourWorkspaces)} |
76 | {' '} | 77 | {' '} |
78 | <span className="badge">{workspaceCount}</span> | ||
77 | </Link> | 79 | </Link> |
78 | <Link | 80 | <Link |
79 | to="/settings/user" | 81 | to="/settings/user" |