warn when showing content

pull/1/head
yann300 6 years ago
parent 5328c733ef
commit bff9fbc798
  1. 7
      src/app.js
  2. 2
      src/app/tabs/support-tab.js

@ -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'>`

Loading…
Cancel
Save