From 1aedcfc0ac33a381e0eb53bcd3d7c704908f7dbe Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 26 Sep 2020 21:36:39 +0200 Subject: [PATCH] Using a different controller for the popout modal --- shared/js/ui/tree/Controller.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/js/ui/tree/Controller.tsx b/shared/js/ui/tree/Controller.tsx index add9ef1c..5e442761 100644 --- a/shared/js/ui/tree/Controller.tsx +++ b/shared/js/ui/tree/Controller.tsx @@ -32,6 +32,9 @@ export function renderChannelTree(channelTree: ChannelTree, target: HTMLElement) ], target); (window as any).chan_pop = () => { + const events = new Registry(); + events.enableDebug("channel-tree-view-modal"); + initializeTreeController(events, channelTree); const modal = spawnExternalModal("channel-tree", events, { handlerId: channelTree.client.handlerId }); modal.show(); }