]> source.dussan.org Git - nextcloud-server.git/commitdiff
AI admin settings: lint:fix
authorMarcel Klehr <mklehr@gmx.net>
Tue, 25 Jul 2023 12:54:06 +0000 (14:54 +0200)
committerMarcel Klehr <mklehr@gmx.net>
Wed, 9 Aug 2023 08:27:47 +0000 (10:27 +0200)
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit a193458e3836aa7895818f307a3f7d3ca09b81ab)

apps/settings/src/components/AdminAI.vue

index 05175bb798801130b9002c686da6250567472092..171d63898019423cc08dbddaed8da459604ed614 100644 (file)
                <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>