Remove `__showing()` in framing service

pull/3094/head
Grandschtroumpf 6 years ago
parent b9a8fb3dce
commit 07165fa28a
  1. 7
      src/framingService.js

@ -1,13 +1,10 @@
export default { export default {
start: (appStore, swapPanelApi, verticalIconApi, mainPanelApi, resizeFeature) => { start: (appStore, swapPanelApi, verticalIconApi, mainPanelApi, resizeFeature) => {
swapPanelApi.event.on('toggle', (moduleName) => { swapPanelApi.event.on('toggle', () => {
resizeFeature.panel1.clientWidth !== 0 ? resizeFeature.minimize() : resizeFeature.maximise() resizeFeature.panel1.clientWidth !== 0 ? resizeFeature.minimize() : resizeFeature.maximise()
}) })
swapPanelApi.event.on('showing', (moduleName) => { swapPanelApi.event.on('showing', () => {
resizeFeature.panel1.clientWidth === 0 ? resizeFeature.maximise() : '' resizeFeature.panel1.clientWidth === 0 ? 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()
}) })
mainPanelApi.event.on('toggle', () => { mainPanelApi.event.on('toggle', () => {
resizeFeature.maximise() resizeFeature.maximise()

Loading…
Cancel
Save