aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-07-25 14:54:06 +0200
committerJulien Veyssier <julien-nc@posteo.net>2023-08-02 12:37:35 +0200
commita193458e3836aa7895818f307a3f7d3ca09b81ab (patch)
treee96789d7fd18d89cd24560dd4a725e35d71d1062 /apps/settings/src
parent112268a48aebf2f2025ee106f41fd6186b08bb59 (diff)
downloadnextcloud-server-a193458e3836aa7895818f307a3f7d3ca09b81ab.tar.gz
nextcloud-server-a193458e3836aa7895818f307a3f7d3ca09b81ab.zip
AI admin settings: lint:fix
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps/settings/src')
-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>