Moved message to title of button

pull/5370/head
ioedeveloper 5 years ago
parent dbf11daed1
commit 3fd5ccb83f
  1. 12
      src/app/tabs/test-tab.js

@ -87,20 +87,12 @@ module.exports = class TestTab extends ViewPlugin {
if (eChecked) { if (eChecked) {
checkAll.checked = true checkAll.checked = true
this.testsSummary.hidden = true
this.testsOutput.hidden = true
runBtn.removeAttribute('disabled') runBtn.removeAttribute('disabled')
runBtn.setAttribute('title', 'Run tests')
} else if (!selectedTests.length) { } else if (!selectedTests.length) {
checkAll.checked = false checkAll.checked = false
this.testsOutput.hidden = true
this.testsSummary.hidden = false
this.testsSummary.innerHTML = ''
this.testsSummary.appendChild(yo`
<div class=${css.summaryTitle}>
<div class="text-info">No test file selected</div>
</div>
`)
runBtn.setAttribute('disabled', 'disabled') runBtn.setAttribute('disabled', 'disabled')
runBtn.setAttribute('title', 'No test file selected')
} }
} }

Loading…
Cancel
Save