add more status

pull/1/head
yann300 6 years ago
parent 30d994a896
commit 86a45e032d
  1. 10
      src/app/tabs/compile-tab.js

@ -76,6 +76,14 @@ class CompileTab extends CompilerApi {
*/ */
listenToEvents () { 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', () => { this.compiler.event.register('compilationStarted', () => {
if (this._view.errorContainer) { if (this._view.errorContainer) {
this._view.errorContainer.innerHTML = '' this._view.errorContainer.innerHTML = ''
@ -355,8 +363,6 @@ class CompileTab extends CompilerApi {
this._view.errorContainer = yo`<div class="${css.errorBlobs}"></div>` this._view.errorContainer = yo`<div class="${css.errorBlobs}"></div>`
this._view.contractSelection = this.contractSelection() this._view.contractSelection = this.contractSelection()
this._view.compilerContainer = this.compilerContainer.render() this._view.compilerContainer = this.compilerContainer.render()
const currentFile = this.fileManager.currentFile()
if (currentFile) this.compilerContainer.currentFile = currentFile
this._view.el = yo` this._view.el = yo`
<div id="compileTabView"> <div id="compileTabView">

Loading…
Cancel
Save