diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-25 23:03:17 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-25 23:03:17 +0100 |
| commit | e2738e0685b15f5304b69f5d0635169ccf1fdc00 (patch) | |
| tree | a0400c74e50470139c8413c7da4e5d4e2be0e26a /scraper/client/paper | |
| parent | d8e4561f3b1102489e366fd0e452f84d1d3f24e7 (diff) | |
updating that interface
Diffstat (limited to 'scraper/client/paper')
| -rw-r--r-- | scraper/client/paper/paper.verify.js | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/scraper/client/paper/paper.verify.js b/scraper/client/paper/paper.verify.js index adb2d1ce..c2c530af 100644 --- a/scraper/client/paper/paper.verify.js +++ b/scraper/client/paper/paper.verify.js @@ -9,7 +9,6 @@ import { USES_DATASET } from '../types' const initialState = { citation: null, - verifiable: false, uses_dataset: USES_DATASET.UNKNOWN, images_in_paper: "FALSE", verified_by: localStorage.getItem('verify.username') || '', @@ -62,7 +61,6 @@ class PaperVerify extends Component { const citationState = this.getCitationState(sha256) this.setState({ ...citationState, - verifiable: paper.verifiable === "TRUE", uses_dataset: paper.uses_dataset === "TRUE", images_in_paper: paper.images_in_paper === "TRUE", verified_by: paper.verified_by, @@ -101,7 +99,6 @@ class PaperVerify extends Component { paper_id: this.state.citation.id, title: this.state.citation.title, dataset: this.props.api.paperInfo.dataset.key, - verifiable: this.state.verifiable, uses_dataset: this.state.uses_dataset, images_in_paper: this.state.images_in_paper, verified_by: this.state.verified_by, @@ -186,19 +183,6 @@ class PaperVerify extends Component { </a> </div> - <div className='param'> - <label>{"Verifiable"}</label> - <input - className='vetting' - type='checkbox' - name='verifiable' - checked={!!this.state.verifiable} - onChange={e => this.setState({ - verifiable: e.target.checked, - })} - /> - </div> - <div className='row vettingRow'> <div className='rowHeading'> {'Uses dataset'} @@ -339,6 +323,21 @@ class PaperVerify extends Component { } } +/* + <div className='param'> + <label>{"Verifiable"}</label> + <input + className='vetting' + type='checkbox' + name='verifiable' + checked={!!this.state.verifiable} + onChange={e => this.setState({ + verifiable: e.target.checked, + })} + /> + </div> +*/ + const mapStateToProps = state => ({ api: state.api, }) |
