X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3b53b656e65fdabc32b3bc748074eb35e9df98eb..b8a41cfd2d037a8d6b881ab71647c535a323f302:/src/views/main-panel/main-panel.tsx diff --git a/src/views/main-panel/main-panel.tsx b/src/views/main-panel/main-panel.tsx index 5bf03da398..2968499df1 100644 --- a/src/views/main-panel/main-panel.tsx +++ b/src/views/main-panel/main-panel.tsx @@ -2,13 +2,14 @@ // // SPDX-License-Identifier: AGPL-3.0 -import { RootState } from '~/store/store'; +import { RootState } from 'store/store'; import { connect } from 'react-redux'; -import { MainPanelRoot, MainPanelRootDataProps } from '~/views/main-panel/main-panel-root'; -import { isSystemWorking } from '~/store/progress-indicator/progress-indicator-reducer'; -import { isWorkbenchLoading } from '~/store/workbench/workbench-actions'; -import { LinkAccountPanelStatus } from '~/store/link-account-panel/link-account-panel-reducer'; -import { matchLinkAccountRoute } from '~/routes/routes'; +import parse from 'parse-duration'; +import { MainPanelRoot, MainPanelRootDataProps } from 'views/main-panel/main-panel-root'; +import { isSystemWorking } from 'store/progress-indicator/progress-indicator-reducer'; +import { isWorkbenchLoading } from 'store/workbench/workbench-actions'; +import { LinkAccountPanelStatus } from 'store/link-account-panel/link-account-panel-reducer'; +import { matchLinkAccountRoute } from 'routes/routes'; const mapStateToProps = (state: RootState): MainPanelRootDataProps => { return { @@ -18,7 +19,9 @@ const mapStateToProps = (state: RootState): MainPanelRootDataProps => { buildInfo: state.appInfo.buildInfo, uuidPrefix: state.auth.localCluster, isNotLinking: state.linkAccountPanel.status === LinkAccountPanelStatus.NONE || state.linkAccountPanel.status === LinkAccountPanelStatus.INITIAL, - isLinkingPath: state.router.location ? matchLinkAccountRoute(state.router.location.pathname) !== null : false + isLinkingPath: state.router.location ? matchLinkAccountRoute(state.router.location.pathname) !== null : false, + siteBanner: state.auth.config.clusterConfig.Workbench.SiteName, + sessionIdleTimeout: parse(state.auth.config.clusterConfig.Workbench.IdleTimeout, 's') || 0 }; };