This will probably also avoid flaky tests when right-clicking on project's
items soon to be removed from the listing. (see #16951)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
try {
api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
const response = await this.services.groupsService.contents(projectUuid, getParams(dataExplorer, !!isProjectTrashed));
try {
api.dispatch(progressIndicatorActions.START_WORKING(this.getId()));
const response = await this.services.groupsService.contents(projectUuid, getParams(dataExplorer, !!isProjectTrashed));
- api.dispatch(progressIndicatorActions.PERSIST_STOP_WORKING(this.getId()));
const resourceUuids = response.items.map(item => item.uuid);
api.dispatch<any>(updateFavorites(resourceUuids));
api.dispatch<any>(updatePublicFavorites(resourceUuids));
const resourceUuids = response.items.map(item => item.uuid);
api.dispatch<any>(updateFavorites(resourceUuids));
api.dispatch<any>(updatePublicFavorites(resourceUuids));
// Load another users home projects
dispatch(finishLoadingProject(uuid));
} else if (userUuid !== uuid) {
// Load another users home projects
dispatch(finishLoadingProject(uuid));
} else if (userUuid !== uuid) {
+ await dispatch(finishLoadingProject(uuid));
const match = await loadGroupContentsResource({ uuid, userUuid, services });
match({
const match = await loadGroupContentsResource({ uuid, userUuid, services });
match({
- OWNED: async project => {
- await dispatch(finishLoadingProject(project));
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSidePanelBreadcrumbs(uuid));
},
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSidePanelBreadcrumbs(uuid));
},
- SHARED: async project => {
- await dispatch(finishLoadingProject(project));
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSharedWithMeBreadcrumbs(uuid));
},
await dispatch(activateSidePanelTreeItem(uuid));
dispatch<any>(setSharedWithMeBreadcrumbs(uuid));
},
- TRASHED: async project => {
- await dispatch(finishLoadingProject(project));
await dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.TRASH));
dispatch<any>(setTrashBreadcrumbs(uuid));
dispatch(setIsProjectPanelTrashed(true));
await dispatch(activateSidePanelTreeItem(SidePanelTreeCategory.TRASH));
dispatch<any>(setTrashBreadcrumbs(uuid));
dispatch(setIsProjectPanelTrashed(true));