aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/views/App.js
diff options
context:
space:
mode:
authorEmiliano Ciavatta2020-09-16 19:20:07 +0000
committerGitHub2020-09-16 19:20:07 +0000
commit98355cdf838d8c18e9a28176ae7a847770545395 (patch)
tree9ee4dc746bceace621b75451efc205dc67d54076 /frontend/src/views/App.js
parent7907dd6fa6702f79d1be9ef8e483fa5533869eb7 (diff)
parent81e22267dfddca85e9e515ce7683efa9c8541ac8 (diff)
Merge pull request #16 from therealbobo/pcap-upload
Pcap upload
Diffstat (limited to 'frontend/src/views/App.js')
-rw-r--r--frontend/src/views/App.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/src/views/App.js b/frontend/src/views/App.js
index 5a2d913..ebead2f 100644
--- a/frontend/src/views/App.js
+++ b/frontend/src/views/App.js
@@ -7,6 +7,7 @@ import Services from "./Services";
import Filters from "./Filters";
import Rules from "./Rules";
import Config from "./Config";
+import Upload from "./Upload";
class App extends Component {
@@ -17,6 +18,7 @@ class App extends Component {
filterWindowOpen: false,
rulesWindowOpen: false,
configWindowOpen: false,
+ uploadWindowOpen: false,
configDone: false
};
@@ -47,6 +49,9 @@ class App extends Component {
modal = <Config onHide={() => this.setState({configWindowOpen: false})}
onDone={() => this.setState({configDone: true})}/>;
}
+ if (this.state.uploadWindowOpen) {
+ modal = <Upload onHide={() => this.setState({uploadWindowOpen: false}) }/>;
+ }
return (
<div className="app">
@@ -55,6 +60,7 @@ class App extends Component {
onOpenFilters={() => this.setState({filterWindowOpen: true})}
onOpenRules={() => this.setState({rulesWindowOpen: true})}
onOpenConfig={() => this.setState({configWindowOpen: true})}
+ onOpenUpload={() => this.setState({uploadWindowOpen: true})}
onConfigDone={this.state.configDone}
/>
<Switch>