Disable run test button when no test is selected

pull/1/head
ioedeveloper 5 years ago
parent 498af4567f
commit ca0606e069
  1. 4
      src/app/tabs/test-tab.js

@ -83,10 +83,14 @@ module.exports = class TestTab extends ViewPlugin {
selectedTests = eChecked ? [...selectedTests, test] : selectedTests.filter(el => el !== test)
this.data.selectedTests = selectedTests
let checkAll = this._view.el.querySelector('[id="checkAllTests"]')
const runBtn = document.getElementById('runTestsTabRunAction')
if (eChecked) {
checkAll.checked = true
runBtn.removeAttribute('disabled')
} else if (!selectedTests.length) {
checkAll.checked = false
runBtn.setAttribute('disabled', 'disabled')
}
}

Loading…
Cancel
Save