//
// 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 = () => allProcessesPanelActions.REQUEST_ITEMS();
+export const loadAllProcessesPanel = () => (dispatch: Dispatch) => {
+ dispatch(allProcessesPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(allProcessesPanelActions.REQUEST_ITEMS());
+}
//
// SPDX-License-Identifier: AGPL-3.0
+import { Dispatch } from "redux";
import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
export const FAVORITE_PANEL_ID = "favoritePanel";
export const favoritePanelActions = bindDataExplorerActions(FAVORITE_PANEL_ID);
-export const loadFavoritePanel = () => favoritePanelActions.REQUEST_ITEMS();
+export const loadFavoritePanel = () => (dispatch: Dispatch) => {
+ dispatch(favoritePanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(favoritePanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file
export const GroupsPanelActions = bindDataExplorerActions(GROUPS_PANEL_ID);
-export const loadGroupsPanel = () => GroupsPanelActions.REQUEST_ITEMS();
+export const loadGroupsPanel = () => (dispatch: Dispatch) => {
+ dispatch(GroupsPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(GroupsPanelActions.REQUEST_ITEMS());
+};
export const openCreateGroupDialog = () =>
(dispatch: Dispatch, getState: () => RootState) => {
}
dispatch(dialogActions.CLOSE_DIALOG({ id: PROJECT_CREATE_FORM_NAME }));
dispatch(reset(PROJECT_CREATE_FORM_NAME));
- dispatch(loadGroupsPanel());
+ dispatch<any>(loadGroupsPanel());
dispatch(snackbarActions.OPEN_SNACKBAR({
message: `${newGroup.name} group has been created`,
kind: SnackbarKind.SUCCESS
export const openProjectPanel = (projectUuid: string) =>
(dispatch: Dispatch) => {
dispatch(propertiesActions.SET_PROPERTY({ key: PROJECT_PANEL_CURRENT_UUID, value: projectUuid }));
+ dispatch(projectPanelActions.RESET_EXPLORER_SEARCH_VALUE());
dispatch(projectPanelActions.REQUEST_ITEMS());
};
export const getProjectPanelCurrentUuid = (state: RootState) => getProperty<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);
-export const setIsProjectPanelTrashed = (isTrashed: boolean) =>
+export const setIsProjectPanelTrashed = (isTrashed: boolean) =>
propertiesActions.SET_PROPERTY({ key: IS_PROJECT_PANEL_TRASHED, value: isTrashed });
//
// SPDX-License-Identifier: AGPL-3.0
+import { Dispatch } from "redux";
import { bindDataExplorerActions } from "store/data-explorer/data-explorer-action";
export const PUBLIC_FAVORITE_PANEL_ID = "publicFavoritePanel";
export const publicFavoritePanelActions = bindDataExplorerActions(PUBLIC_FAVORITE_PANEL_ID);
-export const loadPublicFavoritePanel = () => publicFavoritePanelActions.REQUEST_ITEMS();
\ No newline at end of file
+export const loadPublicFavoritePanel = () => (dispatch: Dispatch) => {
+ dispatch(publicFavoritePanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(publicFavoritePanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file
//
// SPDX-License-Identifier: AGPL-3.0
+import { Dispatch } from "redux";
import { bindDataExplorerActions } from "../data-explorer/data-explorer-action";
export const SHARED_WITH_ME_PANEL_ID = "sharedWithMePanel";
export const sharedWithMePanelActions = bindDataExplorerActions(SHARED_WITH_ME_PANEL_ID);
-export const loadSharedWithMePanel = () => sharedWithMePanelActions.REQUEST_ITEMS();
+export const loadSharedWithMePanel = () => (dispatch: Dispatch) => {
+ dispatch(sharedWithMePanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(sharedWithMePanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file
//
// SPDX-License-Identifier: AGPL-3.0
+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 = () => trashPanelActions.REQUEST_ITEMS();
+export const loadTrashPanel = () => (dispatch: Dispatch) => {
+ dispatch(trashPanelActions.RESET_EXPLORER_SEARCH_VALUE());
+ dispatch(trashPanelActions.REQUEST_ITEMS());
+};
\ No newline at end of file
export const loadUsersPanel = () =>
(dispatch: Dispatch) => {
+ dispatch(userBindedActions.RESET_EXPLORER_SEARCH_VALUE());
dispatch(userBindedActions.REQUEST_ITEMS());
};