mirror of
https://ghfast.top/https://github.com/discourse/discourse-ai.git
synced 2026-07-17 11:46:28 +08:00
This update adds the ability to disable search discoveries. This can be done through a tooltip when search discoveries are shown. It can also be done in the AI user preferences, which has also been updated to accommodate more than just the one image caption setting.
29 lines
No EOL
837 B
Handlebars
29 lines
No EOL
837 B
Handlebars
<div class="ai-user-preferences">
|
|
<legend class="control-label">{{i18n "discourse_ai.title"}}</legend>
|
|
|
|
{{#each this.booleanSettings as |setting|}}
|
|
{{#if setting.isIncluded}}
|
|
<div class="control-group ai-setting">
|
|
<PreferenceCheckbox
|
|
@labelKey={{setting.label}}
|
|
@checked={{get this.model.user_option setting.key}}
|
|
data-setting-name={{setting.settingName}}
|
|
class="pref-{{setting.settingName}}"
|
|
/>
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
|
|
{{#if (eq this.userSettingAttributes.length 0)}}
|
|
{{i18n "discourse_ai.user_preferences.empty"}}
|
|
{{/if}}
|
|
|
|
{{#unless (eq this.userSettingAttributes.length 0)}}
|
|
<SaveControls
|
|
@id="user_ai_preference_save"
|
|
@model={{this.model}}
|
|
@action={{this.save}}
|
|
@saved={{this.saved}}
|
|
/>
|
|
{{/unless}}
|
|
</div> |