Using a different controller for the popout modal
This commit is contained in:
parent
2d5743eb52
commit
f6d25a71f9
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ export function renderChannelTree(channelTree: ChannelTree, target: HTMLElement)
|
||||||
], target);
|
], target);
|
||||||
|
|
||||||
(window as any).chan_pop = () => {
|
(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 });
|
const modal = spawnExternalModal("channel-tree", events, { handlerId: channelTree.client.handlerId });
|
||||||
modal.show();
|
modal.show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue