This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
assets/javascripts/discourse/components Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 11import Component from " @glimmer/component" ;
2+ import { hash } from " @ember/helper" ;
23import { action } from " @ember/object" ;
34import { service } from " @ember/service" ;
45import DButton from " discourse/components/d-button" ;
6+ import PluginOutlet from " discourse/components/plugin-outlet" ;
57import { defaultHomepage } from " discourse/lib/utilities" ;
68import { i18n } from " discourse-i18n" ;
79import { composeAiBotMessage } from " ../lib/ai-bot-helper" ;
@@ -58,12 +60,17 @@ export default class AiBotHeaderIcon extends Component {
5860 <template >
5961 {{#if this . showHeaderButton }}
6062 <li >
61- <DButton
62- @ action ={{this .onClick }}
63- @ icon ={{this .icon }}
64- title ={{i18n " discourse_ai.ai_bot.shortcut_title" }}
65- class =" ai-bot-button icon btn-flat"
66- />
63+ <PluginOutlet
64+ @ name =" ai-bot-header-icon"
65+ @ outletArgs ={{hash onClick =this . onClick icon =this . icon}}
66+ >
67+ <DButton
68+ @ action ={{this .onClick }}
69+ @ icon ={{this .icon }}
70+ title ={{i18n " discourse_ai.ai_bot.shortcut_title" }}
71+ class =" ai-bot-button icon btn-flat"
72+ />
73+ </PluginOutlet >
6774 </li >
6875 {{/if }}
6976 </template >
You can’t perform that action at this time.
0 commit comments