|
|
@ -8,7 +8,7 @@ const styles = styleguide.chooser() |
|
|
|
const EventManager = remixLib.EventManager |
|
|
|
const EventManager = remixLib.EventManager |
|
|
|
|
|
|
|
|
|
|
|
class SwapPanelApi { |
|
|
|
class SwapPanelApi { |
|
|
|
constructor (swapPanelComponent) { |
|
|
|
constructor (swapPanelComponent, pluginManagerApi) { |
|
|
|
this.component = swapPanelComponent |
|
|
|
this.component = swapPanelComponent |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -20,6 +20,11 @@ class SwapPanelApi { |
|
|
|
// add the DOM to the swappanel
|
|
|
|
// add the DOM to the swappanel
|
|
|
|
this.component.addView(viewTitle, contents) |
|
|
|
this.component.addView(viewTitle, contents) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
activate() { |
|
|
|
|
|
|
|
this.event.emit(activated) |
|
|
|
|
|
|
|
this.pluginManagerApi.activated(this.type) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|