diff options
Diffstat (limited to 'src/features/workspaces/actions.ts')
-rw-r--r-- | src/features/workspaces/actions.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/features/workspaces/actions.ts b/src/features/workspaces/actions.ts index b32bd7c86..5f3fefec4 100644 --- a/src/features/workspaces/actions.ts +++ b/src/features/workspaces/actions.ts | |||
@@ -2,12 +2,17 @@ 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 | import { createActionsFromDefinitions } from '../../actions/lib/actions'; |
4 | 4 | ||
5 | type WorkspaceArg = { workspace: Workspace }; | ||
5 | export interface WorkspaceActions { | 6 | export interface WorkspaceActions { |
6 | openWorkspaceSettings: () => void; | 7 | openWorkspaceSettings: () => void; |
7 | toggleWorkspaceDrawer: () => void; | 8 | toggleWorkspaceDrawer: () => void; |
8 | deactivate: () => void; | 9 | deactivate: () => void; |
9 | activate: (options: any) => void; | 10 | activate: (options: any) => void; |
10 | edit: ({ workspace }: { workspace: Workspace }) => void; | 11 | edit: (workspaceArg: WorkspaceArg) => void; |
12 | create: ({ name }: { name: string }) => void; | ||
13 | delete: (workspaceArg: WorkspaceArg) => void; | ||
14 | update: (workspaceArg: WorkspaceArg) => void; | ||
15 | toggleKeepAllWorkspacesLoadedSetting: () => void; | ||
11 | } | 16 | } |
12 | 17 | ||
13 | export default createActionsFromDefinitions<WorkspaceActions>( | 18 | export default createActionsFromDefinitions<WorkspaceActions>( |