From 86a45e032da6faf7577a9d0734cee0a28d25b9a8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 16 Apr 2019 22:52:00 +0200 Subject: [PATCH] add more status --- src/app/tabs/compile-tab.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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`