Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 9e8608b

Browse files
authored
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.
1 parent 72111a1 commit 9e8608b

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

assets/javascripts/discourse/components/ai-llm-editor-form.gjs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -300,25 +300,23 @@ export default class AiLlmEditorForm extends Component {
300300
@content={{i18n "discourse_ai.llms.hints.enabled_chat_bot"}}
301301
/>
302302
</div>
303-
{{/unless}}
304303

305-
{{#if @model.user}}
306-
<div class="control-group">
307-
<label>{{i18n "discourse_ai.llms.ai_bot_user"}}</label>
308-
<a
309-
class="avatar"
310-
href={{@model.user.path}}
311-
data-user-card={{@model.user.username}}
312-
>
313-
{{Avatar @model.user.avatar_template "small"}}
314-
</a>
315-
<LinkTo @route="adminUser" @model={{this.adminUser}}>
316-
{{@model.user.username}}
317-
</LinkTo>
318-
</div>
319-
{{/if}}
304+
{{#if @model.user}}
305+
<div class="control-group">
306+
<label>{{i18n "discourse_ai.llms.ai_bot_user"}}</label>
307+
<a
308+
class="avatar"
309+
href={{@model.user.path}}
310+
data-user-card={{@model.user.username}}
311+
>
312+
{{Avatar @model.user.avatar_template "small"}}
313+
</a>
314+
<LinkTo @route="adminUser" @model={{this.adminUser}}>
315+
{{@model.user.username}}
316+
</LinkTo>
317+
</div>
318+
{{/if}}
320319

321-
{{#unless this.seeded}}
322320
<div class="control-group ai-llm-editor__action_panel">
323321
<DButton
324322
class="ai-llm-editor__test"

0 commit comments

Comments
 (0)