diff options
Diffstat (limited to 'src/features/workspaces/actions.js')
-rw-r--r-- | src/features/workspaces/actions.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/features/workspaces/actions.js b/src/features/workspaces/actions.js index 84de2b011..25246de09 100644 --- a/src/features/workspaces/actions.js +++ b/src/features/workspaces/actions.js | |||
@@ -1,7 +1,8 @@ | |||
1 | import PropTypes from 'prop-types'; | 1 | import PropTypes from 'prop-types'; |
2 | import Workspace from './models/Workspace'; | 2 | import Workspace from './models/Workspace'; |
3 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; | ||
3 | 4 | ||
4 | export default { | 5 | export default createActionsFromDefinitions({ |
5 | edit: { | 6 | edit: { |
6 | workspace: PropTypes.instanceOf(Workspace).isRequired, | 7 | workspace: PropTypes.instanceOf(Workspace).isRequired, |
7 | }, | 8 | }, |
@@ -14,4 +15,8 @@ export default { | |||
14 | update: { | 15 | update: { |
15 | workspace: PropTypes.instanceOf(Workspace).isRequired, | 16 | workspace: PropTypes.instanceOf(Workspace).isRequired, |
16 | }, | 17 | }, |
17 | }; | 18 | activate: { |
19 | workspace: PropTypes.instanceOf(Workspace).isRequired, | ||
20 | }, | ||
21 | deactivate: {}, | ||
22 | }, PropTypes.checkPropTypes); | ||