Commit 86a45e03 authored by yann300's avatar yann300

add more status

parent 30d994a8
......@@ -76,6 +76,14 @@ class CompileTab extends CompilerApi {
*/
listenToEvents () {
this.compiler.event.register('loadingCompiler', () => {
this.events.emit('statusChanged', {key: 'spinner', title: 'loading compiler...', type: 'info'})
})
this.compiler.event.register('compilerLoaded', () => {
this.events.emit('statusChanged', {key: '', title: '', type: ''})
})
this.compiler.event.register('compilationStarted', () => {
if (this._view.errorContainer) {
this._view.errorContainer.innerHTML = ''
......@@ -355,8 +363,6 @@ class CompileTab extends CompilerApi {
this._view.errorContainer = yo`<div class="${css.errorBlobs}"></div>`
this._view.contractSelection = this.contractSelection()
this._view.compilerContainer = this.compilerContainer.render()
const currentFile = this.fileManager.currentFile()
if (currentFile) this.compilerContainer.currentFile = currentFile
this._view.el = yo`
<div id="compileTabView">
......
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