feature/default_network_editable
Dan Finlay 8 years ago
parent 75d9b5619c
commit fc7b4cb4bc
  1. 5
      ui/app/components/ens-input.js
  2. 6
      ui/app/components/pending-tx.js

@ -168,6 +168,7 @@ EnsInput.prototype.ensIconContents = function (recipient) {
} }
} }
function getNetworkEnsSupport(network) { function getNetworkEnsSupport (network) {
return Boolean(networkMap[network]) return Boolean(networkMap[network])
} }

@ -379,17 +379,17 @@ PendingTx.prototype.onSubmit = function (event) {
} }
} }
PendingTx.prototype.checkValidity = function() { PendingTx.prototype.checkValidity = function () {
const form = this.getFormEl() const form = this.getFormEl()
const valid = form.checkValidity() const valid = form.checkValidity()
return valid return valid
} }
PendingTx.prototype.getFormEl = function() { PendingTx.prototype.getFormEl = function () {
const form = document.querySelector('form#pending-tx-form') const form = document.querySelector('form#pending-tx-form')
// Stub out form for unit tests: // Stub out form for unit tests:
if (!form) { if (!form) {
return { checkValidity() { return true } } return { checkValidity () { return true } }
} }
return form return form
} }

Loading…
Cancel
Save