Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 49e7d5e

Browse files
committed
stop-forcing-custom-sidebar appevents trigger
1 parent 99414fe commit 49e7d5e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/javascripts/discourse/services/ai-conversations-sidebar-manager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ADMIN_PANEL, MAIN_PANEL } from "discourse/lib/sidebar/panels";
55
export const AI_CONVERSATIONS_PANEL = "ai-conversations";
66

77
export default class AiConversationsSidebarManager extends Service {
8+
@service appEvents;
89
@service sidebarState;
910

1011
@tracked newTopicForceSidebar = false;
@@ -41,5 +42,7 @@ export default class AiConversationsSidebarManager extends Service {
4142
this.sidebarState.setPanel(MAIN_PANEL); // Return to main sidebar panel
4243
this.sidebarState.isForcingSidebar = false;
4344
}
45+
46+
this.appEvents.trigger("discourse-ai:stop-forcing-custom-sidebar");
4447
}
4548
}

0 commit comments

Comments
 (0)