aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx')
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx17
1 files changed, 10 insertions, 7 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
index 05a79e96..4fdcc786 100644
--- a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
@@ -50,11 +50,11 @@ class CatalogView extends Component {
catalog: { sort }
} = this.props;
- const payload = { ...sort };
-
+ const payload = {
+ ...sort
+ };
payload[NAME] = payload[NAME] === ASC ? DESC : ASC;
-
- handleFetchWorkflow(payload);
+ handleFetchWorkflow(payload, undefined, this.state.searchValue);
};
handleScroll = () => {
@@ -65,8 +65,7 @@ class CatalogView extends Component {
},
handleFetchWorkflow
} = this.props;
-
- handleFetchWorkflow(sort, offset);
+ handleFetchWorkflow(sort, offset, this.state.searchValue);
};
goToOverviewPage = id => {
@@ -75,8 +74,12 @@ class CatalogView extends Component {
};
searchChange = searchValue => {
- const { searchInputChanged, catalog } = this.props;
this.setState({ searchValue: searchValue });
+ this.dispatchChange(searchValue);
+ };
+
+ dispatchChange = searchValue => {
+ const { searchInputChanged, catalog } = this.props;
searchInputChanged({
...catalog,
searchNameFilter: searchValue