X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/99a99d1b9da187562407aebe144ac8140603d684..1416f698b72de4b09350d9c2fb25c1405c3247bc:/src/views/main-panel/main-panel-root.tsx diff --git a/src/views/main-panel/main-panel-root.tsx b/src/views/main-panel/main-panel-root.tsx index e7daaf0093..cdfd0c300f 100644 --- a/src/views/main-panel/main-panel-root.tsx +++ b/src/views/main-panel/main-panel-root.tsx @@ -2,15 +2,15 @@ // // SPDX-License-Identifier: AGPL-3.0 -import * as React from 'react'; +import React from 'react'; import { StyleRulesCallback, WithStyles, withStyles, Grid, LinearProgress } from '@material-ui/core'; -import { User } from "~/models/user"; -import { ArvadosTheme } from '~/common/custom-theme'; -import { WorkbenchPanel } from '~/views/workbench/workbench'; -import { LoginPanel } from '~/views/login-panel/login-panel'; -import { InactivePanel } from '~/views/inactive-panel/inactive-panel'; -import { WorkbenchLoadingScreen } from '~/views/workbench/workbench-loading-screen'; -import { MainAppBar } from '~/views-components/main-app-bar/main-app-bar'; +import { User } from "models/user"; +import { ArvadosTheme } from 'common/custom-theme'; +import { WorkbenchPanel } from 'views/workbench/workbench'; +import { LoginPanel } from 'views/login-panel/login-panel'; +import { InactivePanel } from 'views/inactive-panel/inactive-panel'; +import { WorkbenchLoadingScreen } from 'views/workbench/workbench-loading-screen'; +import { MainAppBar } from 'views-components/main-app-bar/main-app-bar'; type CssRules = 'root'; @@ -31,25 +31,49 @@ export interface MainPanelRootDataProps { isNotLinking: boolean; isLinkingPath: boolean; siteBanner: string; + sessionIdleTimeout: number; + sidePanelIsCollapsed: boolean; + isTransitioning: boolean; + currentSideWidth: number; } -type MainPanelRootProps = MainPanelRootDataProps & WithStyles; +interface MainPanelRootDispatchProps { + toggleSidePanel: () => void +} + +type MainPanelRootProps = MainPanelRootDataProps & MainPanelRootDispatchProps & WithStyles; export const MainPanelRoot = withStyles(styles)( ({ classes, loading, working, user, buildInfo, uuidPrefix, - isNotLinking, isLinkingPath, siteBanner }: MainPanelRootProps) => - loading + isNotLinking, isLinkingPath, siteBanner, sessionIdleTimeout, + sidePanelIsCollapsed, isTransitioning, currentSideWidth}: MainPanelRootProps) =>{ + return loading ? : <> - {isNotLinking && - {working ? : null} - } - - {user ? (user.isActive || (!user.isActive && isLinkingPath) ? : ) : } - - + {isNotLinking && + {working + ? + : null} + } + + {user + ? (user.isActive || (!user.isActive && isLinkingPath) + ? + : ) + : } + + + } );