2024-08-14 13:17:36 -04:00
|
|
|
{{!
|
|
|
|
Later when we have more preferences,
|
|
|
|
move the conditional (showAutoImageCaptionSetting)
|
|
|
|
to be only around the auto-image-caption preference.
|
|
|
|
}}
|
|
|
|
{{#if this.showAutoImageCaptionSetting}}
|
|
|
|
<label class="control-label">{{i18n "discourse_ai.title"}}</label>
|
2024-05-27 13:49:24 -04:00
|
|
|
|
2024-08-14 13:17:36 -04:00
|
|
|
<div class="control-group ai-setting">
|
|
|
|
<PreferenceCheckbox
|
|
|
|
@labelKey="discourse_ai.ai_helper.image_caption.automatic_caption_setting"
|
|
|
|
@checked={{this.model.user_option.auto_image_caption}}
|
|
|
|
data-setting-name="auto-image-caption"
|
|
|
|
class="pref-auto-image-caption"
|
|
|
|
/>
|
|
|
|
</div>
|
2024-05-27 16:27:45 -04:00
|
|
|
|
2024-08-14 13:17:36 -04:00
|
|
|
<SaveControls
|
|
|
|
@id="user_ai_preference_save"
|
|
|
|
@model={{this.model}}
|
|
|
|
@action={{this.save}}
|
|
|
|
@saved={{this.saved}}
|
|
|
|
/>
|
|
|
|
{{/if}}
|