X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b7589d1ba97904174ba427e245d35998d23c6b70..e11c6c520d8d01397f58a5cda1fe7e5e5e06acab:/src/index.tsx diff --git a/src/index.tsx b/src/index.tsx index a3f6c1ee79..ede257dc5d 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -64,7 +64,6 @@ import { runningProcessResourceAdminActionSet, readOnlyProcessResourceActionSet, } from "views-components/context-menu/action-sets/process-resource-action-set"; -import { progressIndicatorActions } from "store/progress-indicator/progress-indicator-actions"; import { trashedCollectionActionSet } from "views-components/context-menu/action-sets/trashed-collection-action-set"; import { setBuildInfo } from "store/app-info/app-info-actions"; import { getBuildInfo } from "common/app-info"; @@ -89,8 +88,6 @@ import { } from "views-components/context-menu/action-sets/project-admin-action-set"; import { permissionEditActionSet } from "views-components/context-menu/action-sets/permission-edit-action-set"; import { workflowActionSet, readOnlyWorkflowActionSet } from "views-components/context-menu/action-sets/workflow-action-set"; -import { snackbarActions, SnackbarKind } from "store/snackbar/snackbar-actions"; -import { openNotFoundDialog } from "./store/not-found-panel/not-found-panel-action"; import { storeRedirects } from "./common/redirect-to"; import { searchResultsActionSet } from "views-components/context-menu/action-sets/search-results-action-set"; @@ -153,25 +150,13 @@ fetchConfig().then(({ config, apiHost }) => { const services = createServices(config, { progressFn: (id, working) => { - //store.dispatch(progressIndicatorActions.TOGGLE_WORKING({ id, working })); }, errorFn: (id, error, showSnackBar: boolean) => { if (showSnackBar) { console.error("Backend error:", error); - - if (error.status === 404) { - store.dispatch(openNotFoundDialog()); - } else if (error.status === 401 && error.errors[0].indexOf("Not logged in") > -1) { + if (error.status === 401 && error.errors[0].indexOf("Not logged in") > -1) { // Catch auth errors when navigating and redirect to login preserving url location store.dispatch(logout(false, true)); - } else { - store.dispatch( - snackbarActions.OPEN_SNACKBAR({ - message: `${error.errors ? error.errors[0] : error.message}`, - kind: SnackbarKind.ERROR, - hideDuration: 8000, - }) - ); } } },