BigW Consortium Gitlab

Commit 84452bfa by Dennis Tang

check for submitButton

fixes issue with tests when only the component is being tested
parent cf65abd8
...@@ -109,7 +109,11 @@ export default { ...@@ -109,7 +109,11 @@ export default {
}, },
enableSubmit() { enableSubmit() {
if (this.hasProject && this.hasZone && this.hasMachineType) { if (this.hasProject && this.hasZone && this.hasMachineType) {
document.querySelector('.js-gke-cluster-creation-submit').removeAttribute('disabled'); const submitButtonEl = document.querySelector('.js-gke-cluster-creation-submit');
if (submitButtonEl) {
submitButtonEl.removeAttribute('disabled');
}
} }
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment