enable on compilashion finished

pull/5370/head
LianaHus 5 years ago committed by Liana Husikyan
parent 0e3d856560
commit a3577b61d8
  1. 15
      src/app/tabs/staticanalysis/staticAnalysisView.js
  2. 5
      src/app/tabs/staticanalysis/styles/staticAnalysisView-styles.js

@ -34,6 +34,7 @@ function staticAnalysisView (localRegistry, analysisModule) {
self.lastCompilationResult = data
if (self.view) self.view.querySelector('#staticAnalysisCurrentFile').innerText = file
self.lastCompilationSource = source
this.correctRunBtnDisabled()
if (self.view.querySelector('#autorunstaticanalysis').checked) {
self.run()
}
@ -45,7 +46,7 @@ staticAnalysisView.prototype.render = function () {
const view = yo`
<div class="${css.analysis}">
<div class="my-2 d-flex flex-column align-items-left">
<div class="d-flex justify-content-between">
<div class="${css.top} d-flex justify-content-between">
<div class="pl-2 ${css.label}" for="checkAllEntries">
<input id="checkAllEntries"
type="checkbox"
@ -196,18 +197,18 @@ staticAnalysisView.prototype.renderModules = function () {
})
return yo`
<div class="${css.block}">
<input type="radio" name="accordion" class="w-100 d-none card" id="heading${categoryId}"/>
<label for="heading${categoryId}" style="cursor: pointer;" class="h6 card-header font-weight-bold border-bottom px-1 py-2 w-100">
<span>${category[0].categoryDisplayName}</span>
</label>
<input type="radio" name="accordion" class="w-100 d-none card" id="heading${categoryId}"/>
<label for="heading${categoryId}" style="cursor: pointer;" class="h6 card-header font-weight-bold border-bottom px-1 py-2 w-100">
<span>${category[0].categoryDisplayName}</span>
</label>
<div class="w-100 d-block px-2 my-1 ${css.entries}">
${entriesDom}
</div>
</>
</div>
`
})
// collaps first module
moduleEntries[0].getElementsByTagName("input")[0].checked = true
moduleEntries[0].getElementsByTagName('input')[0].checked = true
return yo`
<div class="accordion" id="accordionModules">
${moduleEntries}

@ -17,6 +17,11 @@ var css = csjs`
display: flex;
align-items: center;
}
.label {
display: flex;
align-items: center;
user-select: none;
}
.block input[type='radio']:checked ~ .entries{
height: auto;
transition: .3s ease-in;

Loading…
Cancel
Save