Commit 66e1c95b authored by LianaHus's avatar LianaHus

remove refresh on no fileselected

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