diff options
author | kytwb <kytwb@pm.me> | 2021-12-18 20:04:17 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2021-12-18 20:04:17 +0100 |
commit | 28bea416037709a65db4e04ec806781058a7f479 (patch) | |
tree | 32ba85a1972cee0740fb85cf4f397f97b7e7a817 | |
parent | Fix prop title is marked as required in FullscreenLoader (diff) | |
download | ferdium-app-28bea416037709a65db4e04ec806781058a7f479.tar.gz ferdium-app-28bea416037709a65db4e04ec806781058a7f479.tar.zst ferdium-app-28bea416037709a65db4e04ec806781058a7f479.zip |
Fetch workspaces on WorkspaceDrawer componentDidMount
-rw-r--r-- | src/features/workspaces/components/WorkspaceDrawer.js | 4 | ||||
-rw-r--r-- | src/features/workspaces/store.js | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/features/workspaces/components/WorkspaceDrawer.js b/src/features/workspaces/components/WorkspaceDrawer.js index 4fd2b1153..be546cae0 100644 --- a/src/features/workspaces/components/WorkspaceDrawer.js +++ b/src/features/workspaces/components/WorkspaceDrawer.js | |||
@@ -12,6 +12,9 @@ import { Icon } from '../../../components/ui/icon'; | |||
12 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; | 12 | import WorkspaceDrawerItem from './WorkspaceDrawerItem'; |
13 | import { workspaceActions } from '../actions'; | 13 | import { workspaceActions } from '../actions'; |
14 | import { workspaceStore } from '../index'; | 14 | import { workspaceStore } from '../index'; |
15 | import { | ||
16 | getUserWorkspacesRequest, | ||
17 | } from '../api'; | ||
15 | 18 | ||
16 | const messages = defineMessages({ | 19 | const messages = defineMessages({ |
17 | headline: { | 20 | headline: { |
@@ -96,6 +99,7 @@ class WorkspaceDrawer extends Component { | |||
96 | 99 | ||
97 | componentDidMount() { | 100 | componentDidMount() { |
98 | ReactTooltip.rebuild(); | 101 | ReactTooltip.rebuild(); |
102 | getUserWorkspacesRequest.execute(); | ||
99 | } | 103 | } |
100 | 104 | ||
101 | render() { | 105 | render() { |
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index d6b790bd3..61048c637 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -102,7 +102,6 @@ export default class WorkspacesStore extends FeatureStore { | |||
102 | ]); | 102 | ]); |
103 | this._registerReactions(this._allReactions); | 103 | this._registerReactions(this._allReactions); |
104 | 104 | ||
105 | getUserWorkspacesRequest.execute(); | ||
106 | this.isFeatureActive = true; | 105 | this.isFeatureActive = true; |
107 | } | 106 | } |
108 | 107 | ||