Browse Source
Merge pull request #40328 from nextcloud/fix/admin-ai-settings
Fix Admin AI settings javascript error
pull/39856/head
Arthur Schiwon
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
7 additions and
4 deletions
-
apps/settings/src/components/AdminAI.vue
-
dist/settings-vue-settings-admin-ai.js
-
dist/settings-vue-settings-admin-ai.js.map
|
|
|
@ -38,7 +38,7 @@ |
|
|
|
</NcSettingsSection> |
|
|
|
<NcSettingsSection :name="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'])"> |
|
|
|
<template v-for="type in tpTaskTypes"> |
|
|
|
<div :key="type"> |
|
|
|
<h3>{{ t('settings', 'Task:') }} {{ getTaskType(type).name }}</h3> |
|
|
|
<p>{{ getTaskType(type).description }}</p> |
|
|
|
@ -110,6 +110,9 @@ export default { |
|
|
|
hasTextProcessing() { |
|
|
|
return Object.keys(this.settings['ai.textprocessing_provider_preferences']).length > 0 && Array.isArray(this.textProcessingTaskTypes) |
|
|
|
}, |
|
|
|
tpTaskTypes() { |
|
|
|
return Object.keys(this.settings['ai.textprocessing_provider_preferences']).filter(type => !!this.getTaskType(type)) |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
moveUp(i) { |
|
|
|
|