Commit ca0606e0 authored by ioedeveloper's avatar ioedeveloper

Disable run test button when no test is selected

parent 498af456
......@@ -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')
}
}
......
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