projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
20382: works for admins Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox@curii...
[arvados-workbench2.git]
/
src
/
store
/
collection-panel
/
collection-panel-reducer.ts
diff --git
a/src/store/collection-panel/collection-panel-reducer.ts
b/src/store/collection-panel/collection-panel-reducer.ts
index 18590181fb0e79fe150226a66baa9ee51a1f9e64..6afba66c4ca8854d8bcfbdd8cb24d2900cbdd0df 100644
(file)
--- a/
src/store/collection-panel/collection-panel-reducer.ts
+++ b/
src/store/collection-panel/collection-panel-reducer.ts
@@
-3,16
+3,14
@@
// SPDX-License-Identifier: AGPL-3.0
import { collectionPanelActions, CollectionPanelAction } from "./collection-panel-action";
// SPDX-License-Identifier: AGPL-3.0
import { collectionPanelActions, CollectionPanelAction } from "./collection-panel-action";
-import { CollectionResource } from "
~/
models/collection";
+import { CollectionResource } from "models/collection";
export interface CollectionPanelState {
item: CollectionResource | null;
export interface CollectionPanelState {
item: CollectionResource | null;
- loadBigCollections: boolean;
}
const initialState = {
item: null,
}
const initialState = {
item: null,
- loadBigCollections: false,
};
export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) =>
};
export const collectionPanelReducer = (state: CollectionPanelState = initialState, action: CollectionPanelAction) =>
@@
-21,8
+19,5
@@
export const collectionPanelReducer = (state: CollectionPanelState = initialStat
SET_COLLECTION: (item) => ({
...state,
item,
SET_COLLECTION: (item) => ({
...state,
item,
- loadBigCollections: false,
}),
}),
- LOAD_COLLECTION_SUCCESS: ({ item }) => ({ ...state, item }),
- LOAD_BIG_COLLECTIONS: (loadBigCollections) => ({ ...state, loadBigCollections}),
});
});