summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-10-26 11:26:47 +0200
committerMarcel Klehr <mklehr@gmx.net>2023-10-26 11:26:47 +0200
commit14d1c186655889803774aba73f47a7b174303cc1 (patch)
tree36d3e285d48f34edc9a20ae1bfba59480f8146a2 /apps
parent47e13cd55b3e369629b8b15a9332f50102ac076c (diff)
downloadnextcloud-server-14d1c186655889803774aba73f47a7b174303cc1.tar.gz
nextcloud-server-14d1c186655889803774aba73f47a7b174303cc1.zip
en(TextToImage): Add getId method to IProvider
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Settings/Admin/ArtificialIntelligence.php2
-rw-r--r--apps/settings/src/components/AdminAI.vue4
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
index 4556f8e0a9d..3a5340eba2e 100644
--- a/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
+++ b/apps/settings/lib/Settings/Admin/ArtificialIntelligence.php
@@ -105,7 +105,7 @@ class ArtificialIntelligence implements IDelegatedSettings {
$text2imageProviders = [];
foreach ($this->text2imageManager->getProviders() as $provider) {
$text2imageProviders[] = [
- 'class' => $provider::class,
+ 'id' => $provider->getId(),
'name' => $provider->getName(),
];
}
diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue
index 05527e341be..6a3f30451e9 100644
--- a/apps/settings/src/components/AdminAI.vue
+++ b/apps/settings/src/components/AdminAI.vue
@@ -39,9 +39,9 @@
<NcSettingsSection :name="t('settings', 'Image generation')"
:description="t('settings', 'Image generation can be implemented by different apps. Here you can set which app should be used.')">
<template v-for="provider in text2imageProviders">
- <NcCheckboxRadioSwitch :key="provider.class"
+ <NcCheckboxRadioSwitch :key="provider.id"
:checked.sync="settings['ai.text2image_provider']"
- :value="provider.class"
+ :value="provider.id"
name="text2image_provider"
type="radio"
@update:checked="saveChanges">