This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
javascripts/discourse/components
stylesheets/modules/ai-bot-conversations Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11import Component from " @glimmer/component" ;
2+ import { action } from " @ember/object" ;
23import { service } from " @ember/service" ;
34import DButton from " discourse/components/d-button" ;
45import { AI_CONVERSATIONS_PANEL } from " ../services/ai-conversations-sidebar-manager" ;
@@ -14,12 +15,18 @@ export default class AiBotSidebarNewConversation extends Component {
1415 );
1516 }
1617
18+ @action
19+ routeTo () {
20+ this .router .transitionTo (" /discourse-ai/ai-bot/conversations" );
21+ this .args .outletArgs ? .toggleNavigationMenu ? .();
22+ }
23+
1724 <template >
1825 {{#if this . shouldRender }}
1926 <DButton
20- @ route =" /discourse-ai/ai-bot/conversations"
2127 @ label =" discourse_ai.ai_bot.conversations.new"
2228 @ icon =" plus"
29+ @ action ={{this .routeTo }}
2330 class =" ai-new-question-button btn-default"
2431 />
2532 {{/if }}
Original file line number Diff line number Diff line change 11@use " lib/viewport" ;
22
3- // Hide the new question button from the hamburger menu's footer
4- .hamburger-panel .ai-new-question-button {
3+ // Hide the new question button from the hamburger menu's footer on desktop
4+ .desktop-view . hamburger-panel .ai-new-question-button {
55 display : none ;
66}
77
You can’t perform that action at this time.
0 commit comments