UX: Hide AI bot in seeded LLM (#858)

AI bot won't be turned on for seeded LLMs so it makes no sense to expose it here. This will cleanup the template and avoid the double `{{#unless}}` check.
This commit is contained in:
Keegan George 2024-10-24 08:36:17 +09:00 committed by GitHub
parent 72111a10ae
commit 9e8608b070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -300,7 +300,6 @@ export default class AiLlmEditorForm extends Component {
@content={{i18n "discourse_ai.llms.hints.enabled_chat_bot"}} @content={{i18n "discourse_ai.llms.hints.enabled_chat_bot"}}
/> />
</div> </div>
{{/unless}}
{{#if @model.user}} {{#if @model.user}}
<div class="control-group"> <div class="control-group">
@ -318,7 +317,6 @@ export default class AiLlmEditorForm extends Component {
</div> </div>
{{/if}} {{/if}}
{{#unless this.seeded}}
<div class="control-group ai-llm-editor__action_panel"> <div class="control-group ai-llm-editor__action_panel">
<DButton <DButton
class="ai-llm-editor__test" class="ai-llm-editor__test"