Skip to content

Commit 3933746

Browse files
committed
fix(settings): wire Previews admin hints to their inputs
Use helper-text on the Imaginary API key field and aria-describedby on the preview output format select so extra copy is associated with the control. Assisted-by: Grok:grok-4.6 Signed-off-by: Ray Vincent <rayhvincent@gmail.com>
1 parent a109b4b commit 3933746

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

apps/settings/src/views/AdminSettingsPreviews.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -940,17 +940,16 @@ function providerAvailabilityLabel(provider: PreviewProviderRow): string {
940940
<NcPasswordField
941941
v-model="settings.imaginaryKey"
942942
:label="t('settings', 'Imaginary API key (optional)')"
943+
:helper-text="t('settings', 'Sent as the key query parameter. Leave empty if Imaginary does not require a key.')"
943944
:disabled="controlsDisabled"
944945
@change="savePartial({ imaginaryKey: settings.imaginaryKey })" />
945-
<p class="previews-admin__hint">
946-
{{ t('settings', 'Sent as the key query parameter. Leave empty if Imaginary does not require a key.') }}
947-
</p>
948946
<NcSelect
949947
v-model="previewFormatOption"
950948
:options="formatOptions"
951949
:input-label="t('settings', 'Preview output format')"
950+
aria-describedby="previews-format-hint"
952951
:disabled="controlsDisabled" />
953-
<p class="previews-admin__hint">
952+
<p id="previews-format-hint" class="previews-admin__hint">
954953
{{ t('settings', 'Only Imaginary uses this setting. Other providers usually keep the source image type (JPEG stays JPEG, PNG stays PNG). One file is stored per preview size.') }}
955954
</p>
956955
</NcFormBox>

0 commit comments

Comments
 (0)