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:
parent
72111a10ae
commit
9e8608b070
|
@ -300,25 +300,23 @@ 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">
|
||||||
<label>{{i18n "discourse_ai.llms.ai_bot_user"}}</label>
|
<label>{{i18n "discourse_ai.llms.ai_bot_user"}}</label>
|
||||||
<a
|
<a
|
||||||
class="avatar"
|
class="avatar"
|
||||||
href={{@model.user.path}}
|
href={{@model.user.path}}
|
||||||
data-user-card={{@model.user.username}}
|
data-user-card={{@model.user.username}}
|
||||||
>
|
>
|
||||||
{{Avatar @model.user.avatar_template "small"}}
|
{{Avatar @model.user.avatar_template "small"}}
|
||||||
</a>
|
</a>
|
||||||
<LinkTo @route="adminUser" @model={{this.adminUser}}>
|
<LinkTo @route="adminUser" @model={{this.adminUser}}>
|
||||||
{{@model.user.username}}
|
{{@model.user.username}}
|
||||||
</LinkTo>
|
</LinkTo>
|
||||||
</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"
|
||||||
|
|
Loading…
Reference in New Issue