Using a different controller for the popout modal

canary
WolverinDEV 2020-09-26 21:36:39 +02:00
parent 55a3608efb
commit 1aedcfc0ac
1 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,9 @@ export function renderChannelTree(channelTree: ChannelTree, target: HTMLElement)
], target);
(window as any).chan_pop = () => {
const events = new Registry<ChannelTreeUIEvents>();
events.enableDebug("channel-tree-view-modal");
initializeTreeController(events, channelTree);
const modal = spawnExternalModal("channel-tree", events, { handlerId: channelTree.client.handlerId });
modal.show();
}