Commit a5277560 authored by lianahus's avatar lianahus Committed by Liana Husikyan

reset results for compiler tab for change workspace

parent f5acfd6a
...@@ -80,6 +80,15 @@ class CompileTab extends ViewPlugin { ...@@ -80,6 +80,15 @@ class CompileTab extends ViewPlugin {
) )
} }
resetResults () {
if (this._view.errorContainer) {
this._view.errorContainer.innerHTML = ''
}
this.compilerContainer.currentFile = ''
this.data.contractsDetails = {}
yo.update(this._view.contractSelection, this.contractSelection())
}
/************ /************
* EVENTS * EVENTS
*/ */
...@@ -115,6 +124,9 @@ class CompileTab extends ViewPlugin { ...@@ -115,6 +124,9 @@ class CompileTab extends ViewPlugin {
} }
this.emit('statusChanged', { key: 'loading', title: 'compiling...', type: 'info' }) this.emit('statusChanged', { key: 'loading', title: 'compiling...', type: 'info' })
} }
this.on('filePanel', 'setWorkspace', () => this.resetResults())
this.compileTabLogic.event.on('startingCompilation', this.data.eventHandlers.onStartingCompilation) this.compileTabLogic.event.on('startingCompilation', this.data.eventHandlers.onStartingCompilation)
this.data.eventHandlers.onCurrentFileChanged = (name) => { this.data.eventHandlers.onCurrentFileChanged = (name) => {
......
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