aboutsummaryrefslogtreecommitdiffstats
path: root/src/features/workspaces/actions.js
blob: 5b5db422eb8c0162406dc66a03f76c27a7205422 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import PropTypes from 'prop-types';
import Workspace from './models/Workspace';
import { createActionsFromDefinitions } from '../../actions/lib/actions';

export const workspaceActions = createActionsFromDefinitions({
  edit: {
    workspace: PropTypes.instanceOf(Workspace).isRequired,
  },
  create: {
    name: PropTypes.string.isRequired,
  },
  delete: {
    workspace: PropTypes.instanceOf(Workspace).isRequired,
  },
  update: {
    workspace: PropTypes.instanceOf(Workspace).isRequired,
  },
  activate: {
    workspace: PropTypes.instanceOf(Workspace).isRequired,
  },
  deactivate: {},
  toggleWorkspaceDrawer: {},
  openWorkspaceSettings: {},
  toggleKeepAllWorkspacesLoadedSetting: {},
}, PropTypes.checkPropTypes);

export default workspaceActions;