Temporarily remove Validator fields on the `New Ballot` page

This commit is contained in:
Vadim 2019-04-02 09:19:33 +03:00
parent 5bb4b21d42
commit 3451e9a240
2 changed files with 11 additions and 9 deletions

View File

@ -42,15 +42,16 @@ export class NewBallot extends React.Component {
checkValidation() { checkValidation() {
const { commonStore, contractsStore, ballotStore, validatorStore } = this.props const { commonStore, contractsStore, ballotStore, validatorStore } = this.props
if (ballotStore.isNewValidatorPersonalData) { // Temporarily commented (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120)
for (let validatorProp in validatorStore) { // if (ballotStore.isNewValidatorPersonalData) {
if (validatorStore[validatorProp].length === 0) { // for (let validatorProp in validatorStore) {
swal('Warning!', `Validator ${validatorProp} is empty`, 'warning') // if (validatorStore[validatorProp].length === 0) {
commonStore.hideLoading() // swal('Warning!', `Validator ${validatorProp} is empty`, 'warning')
return false // commonStore.hideLoading()
} // return false
} // }
} // }
// }
if (!ballotStore.memo) { if (!ballotStore.memo) {
swal('Warning!', messages.DESCRIPTION_IS_EMPTY, 'warning') swal('Warning!', messages.DESCRIPTION_IS_EMPTY, 'warning')

View File

@ -63,6 +63,7 @@ export class Validator extends React.Component {
} }
render() { render() {
return null // Temporarily empty (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120)
const { validatorStore, networkBranch } = this.props const { validatorStore, networkBranch } = this.props
const inputProps = { const inputProps = {
value: validatorStore.address, value: validatorStore.address,