mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-02-08 04:28:18 +00:00
deb34bb52f
Previously we were not using using HeaderPanel for drop down, which caused it not to properly act like a header panel. - Not styled right - Not hidden when other buttons clicked Etc... Header is sadly full of legacy so this is somewhat hacky weaving widgets.
18 lines
597 B
Handlebars
18 lines
597 B
Handlebars
<div class="bot-panel ai-bot-available-bot-options">
|
|
<div class="menu-panel drop-down">
|
|
<div class="panel-body">
|
|
<div class="panel-body-contents">
|
|
<div class="sidebar-hamburger-dropdown">
|
|
{{#each this.botNames as |bot|}}
|
|
<DButton
|
|
@class="btn-flat ai-bot-available-bot-content"
|
|
@translatedTitle={{bot.humanized}}
|
|
@translatedLabel={{bot.humanized}}
|
|
@action={{action "composeMessageWithTargetBot" bot.modelName}}
|
|
/>
|
|
{{/each}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |