diff options
author | 2019-03-01 14:25:44 +0100 | |
---|---|---|
committer | 2019-03-01 14:25:44 +0100 | |
commit | 739ef2e8a2dec94c3e10c3d26d797fe759fac7aa (patch) | |
tree | 4a2e066bf8627249f803eee16ba8e73268127fbd /src/features/workspaces/state.js | |
parent | fixes merge conflicts with latest develop (diff) | |
download | ferdium-app-739ef2e8a2dec94c3e10c3d26d797fe759fac7aa.tar.gz ferdium-app-739ef2e8a2dec94c3e10c3d26d797fe759fac7aa.tar.zst ferdium-app-739ef2e8a2dec94c3e10c3d26d797fe759fac7aa.zip |
finish workspaces mvp
Diffstat (limited to 'src/features/workspaces/state.js')
-rw-r--r-- | src/features/workspaces/state.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/features/workspaces/state.js b/src/features/workspaces/state.js index f938c1470..963b96f81 100644 --- a/src/features/workspaces/state.js +++ b/src/features/workspaces/state.js | |||
@@ -1,13 +1,15 @@ | |||
1 | import { observable } from 'mobx'; | 1 | import { observable } from 'mobx'; |
2 | 2 | ||
3 | const defaultState = { | 3 | const defaultState = { |
4 | activeWorkspace: null, | ||
4 | isLoading: false, | 5 | isLoading: false, |
6 | isFeatureActive: false, | ||
5 | workspaces: [], | 7 | workspaces: [], |
6 | workspaceBeingEdited: null, | 8 | workspaceBeingEdited: null, |
7 | }; | 9 | }; |
8 | 10 | ||
9 | export const state = observable(defaultState); | 11 | export const workspacesState = observable(defaultState); |
10 | 12 | ||
11 | export function resetState() { | 13 | export function resetState() { |
12 | Object.assign(state, defaultState); | 14 | Object.assign(workspacesState, defaultState); |
13 | } | 15 | } |