mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-08 15:22:47 +00:00
DEV: Add appEvents trigger on AI Chatbot header icon
This commit is contained in:
parent
c0a2d4c935
commit
8704c6e4a9
@ -10,6 +10,7 @@ import { composeAiBotMessage } from "../lib/ai-bot-helper";
|
||||
import { AI_CONVERSATIONS_PANEL } from "../services/ai-conversations-sidebar-manager";
|
||||
|
||||
export default class AiBotHeaderIcon extends Component {
|
||||
@service appEvents;
|
||||
@service composer;
|
||||
@service currentUser;
|
||||
@service navigationMenu;
|
||||
@ -51,6 +52,7 @@ export default class AiBotHeaderIcon extends Component {
|
||||
}
|
||||
|
||||
if (this.siteSettings.ai_bot_enable_dedicated_ux) {
|
||||
this.appEvents.trigger("ai-bot:click-header-icon");
|
||||
return this.router.transitionTo("discourse-ai-bot-conversations");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user