diff options
author | Emiliano Ciavatta | 2020-09-23 21:16:58 +0000 |
---|---|---|
committer | Emiliano Ciavatta | 2020-09-23 21:16:58 +0000 |
commit | 05678b74d98247c957faa1ca3d0bafc5f68974d1 (patch) | |
tree | 05a539466f0c91bced4d93bec2cb20e4325274b2 /frontend/src/components/panels/PcapPane.js | |
parent | 04ee54be31931111bf89e50e4e54ac92b9a19d7a (diff) |
Add BooleanField
Diffstat (limited to 'frontend/src/components/panels/PcapPane.js')
-rw-r--r-- | frontend/src/components/panels/PcapPane.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/components/panels/PcapPane.js b/frontend/src/components/panels/PcapPane.js index 817c7b5..9f3bc19 100644 --- a/frontend/src/components/panels/PcapPane.js +++ b/frontend/src/components/panels/PcapPane.js @@ -5,6 +5,7 @@ import backend from "../../backend"; import {formatSize, timestampToTime2} from "../../utils"; import {Container, Row, Col, Form} from "react-bootstrap"; import StringField from "../fields/StringField"; +import BooleanField from "../fields/BooleanField"; class PcapPane extends Component { @@ -13,6 +14,7 @@ class PcapPane extends Component { this.state = { sessions: [], + test: false }; this.loadSessions = this.loadSessions.bind(this); @@ -86,7 +88,7 @@ class PcapPane extends Component { <br/><br/><br/><br/> - <StringField /> + <BooleanField small={true} name={"marked"} checked={this.state.test} onChange={(v) => this.setState({test: v})} /> </div> </Col> |