diff options
Diffstat (limited to 'frontend/src/views')
-rw-r--r-- | frontend/src/views/Header.js | 4 | ||||
-rw-r--r-- | frontend/src/views/MainPane.js | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/frontend/src/views/Header.js b/frontend/src/views/Header.js index 06cb20e..c38c22d 100644 --- a/frontend/src/views/Header.js +++ b/frontend/src/views/Header.js @@ -75,7 +75,9 @@ class Header extends Component { <Link to="/rules"> <ButtonField variant="deep-purple" name="rules" bordered /> </Link> - <ButtonField variant="indigo" onClick={this.props.onOpenServices} name="services" bordered /> + <Link to="/services"> + <ButtonField variant="indigo" name="services" bordered /> + </Link> <ButtonField variant="blue" onClick={this.props.onOpenConfig} disabled={false} name="config" bordered /> </div> diff --git a/frontend/src/views/MainPane.js b/frontend/src/views/MainPane.js index b9ebadb..d2950ab 100644 --- a/frontend/src/views/MainPane.js +++ b/frontend/src/views/MainPane.js @@ -6,6 +6,7 @@ import {Route, Switch, withRouter} from "react-router-dom"; import PcapPane from "../components/panels/PcapPane"; import backend from "../backend"; import RulePane from "../components/panels/RulePane"; +import ServicePane from "../components/panels/ServicePane"; class MainPane extends Component { @@ -43,6 +44,7 @@ class MainPane extends Component { <Switch> <Route path="/pcaps" children={<PcapPane />} /> <Route path="/rules" children={<RulePane />} /> + <Route path="/services" children={<ServicePane />} /> <Route exact path="/connections/:id" children={<ConnectionContent connection={this.state.selectedConnection} />} /> <Route children={<ConnectionContent />} /> </Switch> |