diff --git a/src/ts/@overflow/app/views/layout/AppLayout.tsx b/src/ts/@overflow/app/views/layout/AppLayout.tsx index a15026f..2035e62 100644 --- a/src/ts/@overflow/app/views/layout/AppLayout.tsx +++ b/src/ts/@overflow/app/views/layout/AppLayout.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { Redirect, RouteComponentProps, RouteProps, Route, Switch } from 'react-router-dom'; -import { Container, Menu, Sidebar, Segment, Icon, Breadcrumb, Grid, Dropdown } from 'semantic-ui-react'; +import { Container, Segment } from 'semantic-ui-react'; import { Header } from './Header'; import { Footer } from './Footer'; import LeftMenu from './LeftMenu'; @@ -9,12 +9,11 @@ import Home from '../Home'; import ProbeList from '../../views/monitoring/probe/List'; import TargetList from '../../views/infrastructure/target/List'; import SensorList from '../monitoring/sensor/List'; +import TitleBarContainer from '@overflow/app/views/layout/TitleBarContainer'; export interface Props extends RouteComponentProps { } export interface State { - sidebar_visible: boolean; - notification_visible: boolean; } export class AppLayout extends React.Component { @@ -22,14 +21,9 @@ export class AppLayout extends React.Component { constructor(props: Props, context: State) { super(props, context); this.state = { - sidebar_visible: true, - notification_visible: false, }; } - public onSidebar = () => { - this.setState({ notification_visible: !this.state.notification_visible, sidebar_visible: !this.state.sidebar_visible }); - } public render(): JSX.Element { return ( @@ -37,6 +31,7 @@ export class AppLayout extends React.Component {
+ diff --git a/src/ts/@overflow/app/views/layout/ProbeDetailLayout.tsx b/src/ts/@overflow/app/views/layout/ProbeDetailLayout.tsx index 213a47f..ef8729e 100644 --- a/src/ts/@overflow/app/views/layout/ProbeDetailLayout.tsx +++ b/src/ts/@overflow/app/views/layout/ProbeDetailLayout.tsx @@ -8,7 +8,7 @@ import LeftMenu from './LeftMenu'; import ProbeDetail from '../../views/monitoring/probe/Detail'; import ProbeHistory from '../../views/monitoring/probe/History'; - +import TargetList from '../../views/infrastructure/target/List'; export interface Props extends RouteComponentProps { } @@ -36,16 +36,21 @@ export class ProbeDetailLayout extends React.Component { 'name': 'History', 'path': this.state.currUrl + '/history', }, + { + 'name': 'Targets', + 'path': this.state.currUrl + '/targets', + }, ]; return (
- + +