|
|
@ -5,7 +5,7 @@ class SwapPanelApi { |
|
|
|
this.event = new EventEmmitter() |
|
|
|
this.event = new EventEmmitter() |
|
|
|
this.component = swapPanelComponent |
|
|
|
this.component = swapPanelComponent |
|
|
|
this.currentContent |
|
|
|
this.currentContent |
|
|
|
verticalIconsComponent.events.on('showContent', (moduleName) => { |
|
|
|
verticalIconsComponent.events.on('toggleContent', (moduleName) => { |
|
|
|
if (!swapPanelComponent.contents[moduleName]) return |
|
|
|
if (!swapPanelComponent.contents[moduleName]) return |
|
|
|
if (this.currentContent === moduleName) { |
|
|
|
if (this.currentContent === moduleName) { |
|
|
|
this.event.emit('toggle', moduleName) |
|
|
|
this.event.emit('toggle', moduleName) |
|
|
@ -14,6 +14,12 @@ class SwapPanelApi { |
|
|
|
this.showContent(moduleName) |
|
|
|
this.showContent(moduleName) |
|
|
|
this.event.emit('showing', moduleName) |
|
|
|
this.event.emit('showing', moduleName) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
verticalIconsComponent.events.on('showContent', (moduleName) => { |
|
|
|
|
|
|
|
if (!swapPanelComponent.contents[moduleName]) return |
|
|
|
|
|
|
|
this.showContent(moduleName) |
|
|
|
|
|
|
|
this.event.emit('showing', moduleName) |
|
|
|
|
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
showContent (moduleName) { |
|
|
|
showContent (moduleName) { |
|
|
|