Commit 66e1c95b authored by LianaHus's avatar LianaHus

remove refresh on no fileselected

comment
parent a9bef6b3
......@@ -34,6 +34,7 @@ class AnalysisTab extends BaseApi {
} else if (count === 0) {
this.events.emit('statusChanged', {key: 'success', title: 'no warning', type: 'success'})
} else {
// count ==-1 no compilation result
this.events.emit('statusChanged', {key: 'none'})
}
})
......
......@@ -106,7 +106,6 @@ class CompileTab extends CompilerApi {
this.fileManager.events.on('noFileSelected', () => {
this.compilerContainer.currentFile = ''
cleanupErrors()
onContentChanged()
})
const cleanupErrors = () => {
......
......@@ -100,7 +100,7 @@ class CompilerContainer {
var displayed = name === '' ? '<no file selected>' : name
var el = yo`
<div class="${css.compilerArticle}">
<button class="btn btn-primary btn-block" title="Compile" onclick="${this.compile.bind(this)}">
<button class="btn btn-primary btn-block ${name === '' ? 'disabled' : ''}" title="Compile" onclick="${this.compile.bind(this)}">
<span>${this._view.compileIcon} Compile ${displayed}</span>
</button>
</div>`
......
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