diff options
author | Jana Peper <jana.peper@nextcloud.com> | 2024-12-06 11:35:54 +0100 |
---|---|---|
committer | janepie <49834966+janepie@users.noreply.github.com> | 2024-12-18 18:32:34 +0100 |
commit | c09ca83053c68e101650555407f5509d6b874d14 (patch) | |
tree | cd42fd5e87e9518a89d249f6704c00351b0d9db6 /apps/settings/src/components/AdminAI.vue | |
parent | db683da757d854ff0e86d78a8b7053e2677731ac (diff) | |
download | nextcloud-server-c09ca83053c68e101650555407f5509d6b874d14.tar.gz nextcloud-server-c09ca83053c68e101650555407f5509d6b874d14.zip |
feat: add switch in frontend
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
Diffstat (limited to 'apps/settings/src/components/AdminAI.vue')
-rw-r--r-- | apps/settings/src/components/AdminAI.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue index 557b4e23067..df53d88c85e 100644 --- a/apps/settings/src/components/AdminAI.vue +++ b/apps/settings/src/components/AdminAI.vue @@ -10,10 +10,14 @@ <div :key="type"> <h3>{{ t('settings', 'Task:') }} {{ type.name }}</h3> <p>{{ type.description }}</p> - <p> </p> + <NcCheckboxRadioSwitch type="switch" + v-model="taskEnabled" > + {{ t('settings', 'Enable') }} + </NcCheckboxRadioSwitch> <NcSelect v-model="settings['ai.taskprocessing_provider_preferences'][type.id]" class="provider-select" :clearable="false" + :disabled="!taskEnabled" :options="taskProcessingProviders.filter(p => p.taskType === type.id).map(p => p.id)" @input="saveChanges"> <template #option="{label}"> @@ -142,6 +146,7 @@ export default { taskProcessingProviders: loadState('settings', 'ai-task-processing-providers'), taskProcessingTaskTypes: loadState('settings', 'ai-task-processing-task-types'), settings: loadState('settings', 'ai-settings'), + taskEnabled: true, } }, computed: { |