Merge pull request #198 from varasev/no-validator-fields
(Fix) Temporarily remove Validator fields from the `New Ballot` page
This commit is contained in:
commit
9f7bfb7b2f
|
@ -42,15 +42,16 @@ export class NewBallot extends React.Component {
|
|||
checkValidation() {
|
||||
const { commonStore, contractsStore, ballotStore, validatorStore } = this.props
|
||||
|
||||
if (ballotStore.isNewValidatorPersonalData) {
|
||||
for (let validatorProp in validatorStore) {
|
||||
if (validatorStore[validatorProp].length === 0) {
|
||||
swal('Warning!', `Validator ${validatorProp} is empty`, 'warning')
|
||||
commonStore.hideLoading()
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
// Temporarily commented (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120)
|
||||
// if (ballotStore.isNewValidatorPersonalData) {
|
||||
// for (let validatorProp in validatorStore) {
|
||||
// if (validatorStore[validatorProp].length === 0) {
|
||||
// swal('Warning!', `Validator ${validatorProp} is empty`, 'warning')
|
||||
// commonStore.hideLoading()
|
||||
// return false
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
if (!ballotStore.memo) {
|
||||
swal('Warning!', messages.DESCRIPTION_IS_EMPTY, 'warning')
|
||||
|
|
|
@ -63,6 +63,7 @@ export class Validator extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
return null // Temporarily empty (until we implement https://github.com/poanetwork/poa-dapps-voting/issues/120)
|
||||
const { validatorStore, networkBranch } = this.props
|
||||
const inputProps = {
|
||||
value: validatorStore.address,
|
||||
|
|
Loading…
Reference in New Issue