diff options
author | Emiliano Ciavatta | 2020-09-30 13:58:16 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-09-30 13:58:16 +0000 |
commit | d5ed31be3b6c97f92be4e94b70d32d1b89932ae9 (patch) | |
tree | 0deffc50058f731c51ba4b804c9db7eaff1c94a0 /frontend/src/views | |
parent | 43135c255d82aa7c54ea83b14369c93425ae75f6 (diff) |
Complete services page
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> |