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