X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/196524296dd9ddc5558c6296f0d7b69ae66f155d..d0b5089542fbb8daf95e5bd82da2cd710bd2b57a:/src/store/workbench/workbench-actions.ts diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts index 62fca469..bc2a9ed6 100644 --- a/src/store/workbench/workbench-actions.ts +++ b/src/store/workbench/workbench-actions.ts @@ -49,6 +49,8 @@ import { unionize, ofType, UnionOf, MatchCases } from '~/common/unionize'; import { loadRunProcessPanel } from '~/store/run-process-panel/run-process-panel-actions'; import { loadCollectionFiles } from '~/store/collection-panel/collection-panel-files/collection-panel-files-actions'; import { SnackbarKind } from '~/store/snackbar/snackbar-actions'; +import { collectionPanelActions } from "~/store/collection-panel/collection-panel-action"; +import { CollectionResource } from "~/models/collection"; export const WORKBENCH_LOADING_SCREEN = 'workbenchLoadingScreen'; @@ -197,18 +199,21 @@ export const loadCollection = (uuid: string) => const match = await loadGroupContentsResource({ uuid, userUuid, services }); match({ OWNED: async collection => { + dispatch(collectionPanelActions.SET_COLLECTION(collection as CollectionResource)); dispatch(updateResources([collection])); await dispatch(activateSidePanelTreeItem(collection.ownerUuid)); dispatch(setSidePanelBreadcrumbs(collection.ownerUuid)); dispatch(loadCollectionFiles(collection.uuid)); }, SHARED: collection => { + dispatch(collectionPanelActions.SET_COLLECTION(collection as CollectionResource)); dispatch(updateResources([collection])); dispatch(setSharedWithMeBreadcrumbs(collection.ownerUuid)); dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.SHARED_WITH_ME)); dispatch(loadCollectionFiles(collection.uuid)); }, TRASHED: collection => { + dispatch(collectionPanelActions.SET_COLLECTION(collection as CollectionResource)); dispatch(updateResources([collection])); dispatch(setTrashBreadcrumbs('')); dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.TRASH)); @@ -358,7 +363,7 @@ export const loadSharedWithMe = handleFirstTimeLoad(async (dispatch: Dispatch) = export const loadRunProcess = handleFirstTimeLoad( async (dispatch: Dispatch) => { - dispatch(loadRunProcessPanel()); + await dispatch(loadRunProcessPanel()); } );