summaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-25 14:54:06 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-08-09 10:27:47 +0200
commit9e6a864dcc30897f13939d89bbfdb878b982ab4c (patch)
tree6433947164973ee83701051234076c58360efa99 /apps/settings
parent8507112f90f95e233f39ab015885966c29b0c507 (diff)
downloadnextcloud-server-9e6a864dcc30897f13939d89bbfdb878b982ab4c.tar.gz
nextcloud-server-9e6a864dcc30897f13939d89bbfdb878b982ab4c.zip
AI admin settings: lint:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net> (cherry picked from commit a193458e3836aa7895818f307a3f7d3ca09b81ab)
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/components/AdminAI.vue32
1 files changed, 17 insertions, 15 deletions
diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue
index 05175bb7988..171d6389801 100644
--- a/apps/settings/src/components/AdminAI.vue
+++ b/apps/settings/src/components/AdminAI.vue
@@ -29,21 +29,23 @@
<NcSettingsSection :title="t('settings', 'Text processing')"
:description="t('settings', 'Text processing tasks can be implemented by different apps. Here you can set which app should be used for which task.')">
<template v-for="type in Object.keys(settings['ai.textprocessing_provider_preferences'])">
- <h3>{{ t('settings', 'Task:') }} {{ getTaskType(type).name }}</h3>
- <p>{{ getTaskType(type).description }}</p>
- <p>&nbsp;</p>
- <NcSelect v-model="settings['ai.textprocessing_provider_preferences'][type]"
- :clearable="false"
- :options="textProcessingProviders.filter(p => p.taskType === type).map(p => p.class)"
- @change="saveChanges">
- <template #option="{label}">
- {{ textProcessingProviders.find(p => p.class === label)?.name }}
- </template>
- <template #selected-option="{label}">
- {{ textProcessingProviders.find(p => p.class === label)?.name }}
- </template>
- </NcSelect>
- <p>&nbsp;</p>
+ <div :key="type">
+ <h3>{{ t('settings', 'Task:') }} {{ getTaskType(type).name }}</h3>
+ <p>{{ getTaskType(type).description }}</p>
+ <p>&nbsp;</p>
+ <NcSelect v-model="settings['ai.textprocessing_provider_preferences'][type]"
+ :clearable="false"
+ :options="textProcessingProviders.filter(p => p.taskType === type).map(p => p.class)"
+ @change="saveChanges">
+ <template #option="{label}">
+ {{ textProcessingProviders.find(p => p.class === label)?.name }}
+ </template>
+ <template #selected-option="{label}">
+ {{ textProcessingProviders.find(p => p.class === label)?.name }}
+ </template>
+ </NcSelect>
+ <p>&nbsp;</p>
+ </div>
</template>
<template v-if="Object.keys(settings['ai.textprocessing_provider_preferences']).length === 0 || !Array.isArray(textProcessingTaskTypes)">
<p>{{ t('settings', 'No apps are currently installed that provide Text processing functionality') }}</p>