Commit bff9fbc7 authored by yann300's avatar yann300

warn when showing content

parent 5328c733
......@@ -475,7 +475,12 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
swapPanelApi.event.on('toggle', () => {
this._components.resizeFeature.panel1.clientWidth !== 0 ? this._components.resizeFeature.minimize() : this._components.resizeFeature.maximise()
})
swapPanelApi.event.on('showing', () => { this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : '' })
swapPanelApi.event.on('showing', (moduleName) => {
this._components.resizeFeature.panel1.clientWidth === 0 ? this._components.resizeFeature.maximise() : ''
var current = appStore.getOne(moduleName)
// warn the content that it is being displayed. TODO should probably be done in each view
if (current && current.api.__showing) current.api.__showing()
})
verticalIconComponent.select('file explorers')
......
......@@ -9,7 +9,7 @@ class SupportTab {
this.gitterIsLoaded = false
}
loadContent () {
__showing () {
if (this.gitterIsLoaded) return
const iframe = yo`<iframe class="${css.chatIframe}" src='https://gitter.im/ethereum/remix/~embed'>`
......
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