From 3ef601c0402d99672757addcab8e99c513bb32cf Mon Sep 17 00:00:00 2001 From: Jana Peper Date: Sun, 8 Dec 2024 19:16:19 +0100 Subject: [PATCH] feat: filter disabled apps in task types requests Signed-off-by: Jana Peper --- .../lib/Settings/Admin/ArtificialIntelligence.php | 2 +- apps/settings/src/components/AdminAI.vue | 4 +--- lib/private/TaskProcessing/Manager.php | 14 +++++++++++++- lib/public/TaskProcessing/IManager.php | 3 ++- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php index 197ea0de283d8..c606963536715 100644 --- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php +++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php @@ -114,7 +114,7 @@ public function getForm() { } $taskProcessingTaskTypes = []; $taskProcessingTypeSettings = []; - foreach ($this->taskProcessingManager->getAvailableTaskTypes() as $taskTypeId => $taskTypeDefinition) { + foreach ($this->taskProcessingManager->getAvailableTaskTypes(true) as $taskTypeId => $taskTypeDefinition) { $taskProcessingTaskTypes[] = [ 'id' => $taskTypeId, 'name' => $taskTypeDefinition['name'], diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue index 0d6f32a9aa9e0..fe8044d93b527 100644 --- a/apps/settings/src/components/AdminAI.vue +++ b/apps/settings/src/components/AdminAI.vue @@ -18,7 +18,7 @@