X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e954cfb45dbe418c151144cc42847b848c9b0ebf..06f1c8b752ff3f2b788773eac42438335bb86a91:/src/index.tsx diff --git a/src/index.tsx b/src/index.tsx index 014627a9b2..ee174b2c53 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -14,7 +14,6 @@ import { configureStore, RootStore } from '~/store/store'; import { ConnectedRouter } from "react-router-redux"; import { ApiToken } from "~/views-components/api-token/api-token"; import { initAuth } from "~/store/auth/auth-action"; -import { configActions } from "~/store/config/config-action"; import { createServices } from "~/services/services"; import { MuiThemeProvider } from '@material-ui/core/styles'; import { CustomTheme } from '~/common/custom-theme'; @@ -40,7 +39,6 @@ import { addRouteChangeHandlers } from './routes/route-change-handlers'; import { setCurrentTokenDialogApiHost } from '~/store/current-token-dialog/current-token-dialog-actions'; import { processResourceActionSet } from '~/views-components/context-menu/action-sets/process-resource-action-set'; import { progressIndicatorActions } from '~/store/progress-indicator/progress-indicator-actions'; -import { setUuidPrefix } from '~/store/workflow-panel/workflow-panel-actions'; import { trashedCollectionActionSet } from '~/views-components/context-menu/action-sets/trashed-collection-action-set'; import { ContainerRequestState } from '~/models/container-request'; import { MountKind } from '~/models/mount-types'; @@ -64,9 +62,6 @@ import { loadFileViewersConfig } from '~/store/file-viewers/file-viewers-actions import { collectionAdminActionSet } from '~/views-components/context-menu/action-sets/collection-admin-action-set'; import { processResourceAdminActionSet } from '~/views-components/context-menu/action-sets/process-resource-admin-action-set'; import { projectAdminActionSet } from '~/views-components/context-menu/action-sets/project-admin-action-set'; -import { ACCOUNT_LINK_STATUS_KEY } from '~/services/link-account-service/link-account-service'; -import { cancelLinking } from '~/store/link-account-panel/link-account-panel-actions'; -import { matchTokenRoute } from '~/routes/routes'; console.log(`Starting arvados [${getBuildInfo()}]`); @@ -111,13 +106,6 @@ fetchConfig() }); const store = configureStore(history, services); - // Cancel any link account ops in progess unless the user has - // just logged in or there has been a successful link operation - const data = sessionStorage.getItem(ACCOUNT_LINK_STATUS_KEY); - if (!matchTokenRoute(history.location.pathname) && data === null) { - store.dispatch(cancelLinking()); - } - store.subscribe(initListener(history, store, services, config)); store.dispatch(initAuth(config)); store.dispatch(setBuildInfo()); @@ -125,7 +113,8 @@ fetchConfig() store.dispatch(loadVocabulary); store.dispatch(loadFileViewersConfig); - const TokenComponent = (props: any) => ; + const TokenComponent = (props: any) => ; + const FedTokenComponent = (props: any) => ; const MainPanelComponent = (props: any) => ; const App = () => @@ -135,6 +124,7 @@ fetchConfig() +