Merge branch '18874-merge-wb2'
[arvados.git] / services / workbench2 / src / store / all-processes-panel / all-processes-panel-action.ts
diff --git a/services/workbench2/src/store/all-processes-panel/all-processes-panel-action.ts b/services/workbench2/src/store/all-processes-panel/all-processes-panel-action.ts
new file mode 100644 (file)
index 0000000..c33cd82
--- /dev/null
@@ -0,0 +1,14 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import { Dispatch } from "redux";
+import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
+
+export const ALL_PROCESSES_PANEL_ID = "allProcessesPanel";
+export const allProcessesPanelActions = bindDataExplorerActions(ALL_PROCESSES_PANEL_ID);
+
+export const loadAllProcessesPanel = () => (dispatch: Dispatch) => {
+    dispatch(allProcessesPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+    dispatch(allProcessesPanelActions.REQUEST_ITEMS());
+}