mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 11:44:06 -06:00
FIX: ensures side panel is closed (#24822)
When navigating to /chat/threads we were not closing the side panel. It would not show as the route doesn't support it, but after if we would open a channel from the sidebar it would open the channel with an empty opened sidepanel .
This commit is contained in:
parent
dc8c6b8958
commit
a7a4aaa6b9
@ -3,8 +3,10 @@ import DiscourseRoute from "discourse/routes/discourse";
|
||||
|
||||
export default class ChatChannelThreads extends DiscourseRoute {
|
||||
@service chat;
|
||||
@service chatStateManager;
|
||||
|
||||
activate() {
|
||||
this.chat.activeChannel = null;
|
||||
this.chatStateManager.closeSidePanel();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user