Add CreateGroupDialog
[arvados-workbench2.git] / src / store / groups-panel / groups-panel-actions.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { bindDataExplorerActions } from "~/store/data-explorer/data-explorer-action";
6 import { dialogActions } from '~/store/dialog/dialog-actions';
7
8 export const GROUPS_PANEL_ID = "groupsPanel";
9 export const CREATE_GROUP_DIALOG = "createGroupDialog";
10 export const CREATE_GROUP_FORM = "createGroupForm";
11
12 export const GroupsPanelActions = bindDataExplorerActions(GROUPS_PANEL_ID);
13
14 export const loadGroupsPanel = () => GroupsPanelActions.REQUEST_ITEMS();
15
16 export const openCreateGroupDialog = () =>
17     dialogActions.OPEN_DIALOG({ id: CREATE_GROUP_DIALOG, data: {} });