aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/AdminAI.vue
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/components/AdminAI.vue')
-rw-r--r--apps/settings/src/components/AdminAI.vue4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue
index 0d6f32a9aa9..fe8044d93b5 100644
--- a/apps/settings/src/components/AdminAI.vue
+++ b/apps/settings/src/components/AdminAI.vue
@@ -18,7 +18,7 @@
<NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]"
class="provider-select"
:clearable="false"
- :disabled="!type.enabled"
+ :disabled="!settings['ai.taskprocessing_type_preferences'][type.id]"
:options="taskProcessingProviders.filter(p => p.taskType === type.id).map(p => p.id)"
@input="saveChanges">
<template #option="{label}">
@@ -189,7 +189,6 @@ export default {
this.saveChanges()
},
async saveChanges() {
- console.warn(this.settings)
this.loading = true
await nextTick()
const data = { settings: this.settings }
@@ -199,7 +198,6 @@ export default {
console.error('could not save changes', err)
}
this.loading = false
- console.warn('done')
},
getTextProcessingTaskType(type) {
if (!Array.isArray(this.textProcessingTaskTypes)) {