15768: standardized naming Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados.git] / src / store / trash-panel / trash-panel-action.ts
index 84d5602457516f91e61c732ad1239d2831c99dd3..78b1a9729dc441c3bc94ef9bb10fbd68599b621d 100644 (file)
@@ -2,7 +2,13 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
+import { Dispatch } from "redux";
+import { bindDataExplorerActions } from "store/data-explorer/data-explorer-action";
 
 export const TRASH_PANEL_ID = "trashPanel";
 export const trashPanelActions = bindDataExplorerActions(TRASH_PANEL_ID);
+
+export const loadTrashPanel = () => (dispatch: Dispatch) => {
+    dispatch(trashPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+    dispatch(trashPanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file