diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 955db1e7fd..a87d566322 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -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`
` 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`