projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update collection panel actions and reducer to work with updated state structure
[arvados-workbench2.git]
/
src
/
store
/
collection-panel
/
collection-panel-files
/
collection-panel-files-actions.ts
diff --git
a/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
b/src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
index 6997f088e2bddbd5d71c0f2dd87537171c402dcb..90fcf3eef3dbbdea40a6f1d49a7e9e619117ba3a 100644
(file)
--- a/
src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
+++ b/
src/store/collection-panel/collection-panel-files/collection-panel-files-actions.ts
@@
-3,12
+3,14
@@
// SPDX-License-Identifier: AGPL-3.0
import { default as unionize, ofType, UnionOf } from "unionize";
// SPDX-License-Identifier: AGPL-3.0
import { default as unionize, ofType, UnionOf } from "unionize";
-import {
CollectionPanelFilesState, CollectionPanelFile } from "./collection-panel-files-state
";
+import {
KeepManifest } from "../../../models/keep-manifest
";
export const collectionPanelFilesAction = unionize({
export const collectionPanelFilesAction = unionize({
- SET_COLLECTION_FILES: ofType<{
files: CollectionPanelFilesState
}>(),
+ SET_COLLECTION_FILES: ofType<{
manifest: KeepManifest
}>(),
TOGGLE_COLLECTION_FILE_COLLAPSE: ofType<{ id: string }>(),
TOGGLE_COLLECTION_FILE_COLLAPSE: ofType<{ id: string }>(),
- TOGGLE_COLLECTION_FILE_SELECTION: ofType<{ id: string }>()
+ TOGGLE_COLLECTION_FILE_SELECTION: ofType<{ id: string }>(),
+ SELECT_ALL_COLLECTION_FILES: ofType<{}>(),
+ UNSELECT_ALL_COLLECTION_FILES: ofType<{}>(),
}, { tag: 'type', value: 'payload' });
export type CollectionPanelFilesAction = UnionOf<typeof collectionPanelFilesAction>;
\ No newline at end of file
}, { tag: 'type', value: 'payload' });
export type CollectionPanelFilesAction = UnionOf<typeof collectionPanelFilesAction>;
\ No newline at end of file