X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/37e43f4e19ad2bd27b15fe7f0d857218dad39055..e4bb589377e9be89787f1b3cc15a0cd2f17a6f7a:/src/store/data-explorer/data-explorer-action.ts diff --git a/src/store/data-explorer/data-explorer-action.ts b/src/store/data-explorer/data-explorer-action.ts index abb293fd..a58d20ed 100644 --- a/src/store/data-explorer/data-explorer-action.ts +++ b/src/store/data-explorer/data-explorer-action.ts @@ -2,7 +2,7 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { default as unionize, ofType, UnionOf } from "unionize"; +import { unionize, ofType, UnionOf } from "~/common/unionize"; import { DataTableFilterItem } from "~/components/data-table-filters/data-table-filters"; import { DataColumns } from "~/components/data-table/data-table"; @@ -16,8 +16,8 @@ export const dataExplorerActions = unionize({ SET_ROWS_PER_PAGE: ofType<{ id: string, rowsPerPage: number }>(), TOGGLE_COLUMN: ofType<{ id: string, columnName: string }>(), TOGGLE_SORT: ofType<{ id: string, columnName: string }>(), - SET_SEARCH_VALUE: ofType<{ id: string, searchValue: string }>(), -}, { tag: "type", value: "payload" }); + SET_EXPLORER_SEARCH_VALUE: ofType<{ id: string, searchValue: string }>(), +}); export type DataExplorerAction = UnionOf; @@ -40,6 +40,6 @@ export const bindDataExplorerActions = (id: string) => ({ dataExplorerActions.TOGGLE_COLUMN({ ...payload, id }), TOGGLE_SORT: (payload: { columnName: string }) => dataExplorerActions.TOGGLE_SORT({ ...payload, id }), - SET_SEARCH_VALUE: (payload: { searchValue: string }) => - dataExplorerActions.SET_SEARCH_VALUE({ ...payload, id }), + SET_EXPLORER_SEARCH_VALUE: (payload: { searchValue: string }) => + dataExplorerActions.SET_EXPLORER_SEARCH_VALUE({ ...payload, id }), });