aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorJulia Kirschenheuter <6078378+JuliaKirschenheuter@users.noreply.github.com>2024-01-23 09:02:08 +0100
committerGitHub <noreply@github.com>2024-01-23 09:02:08 +0100
commit4bf4cee870ff476299d49a185c9ce99a28b7fba3 (patch)
tree5789c29930553a2b100889997aef9c9ceebe6320 /apps/settings
parent3154e09e43b0d03631e489f3af5f093c41d9c29f (diff)
parent60df95f5ed0d82fff9511548d8b0c24c571bbe7e (diff)
downloadnextcloud-server-4bf4cee870ff476299d49a185c9ce99a28b7fba3.tar.gz
nextcloud-server-4bf4cee870ff476299d49a185c9ce99a28b7fba3.zip
Merge pull request #43015 from nextcloud/fix/42941-Replace_samtically_incorrect_elements_on_Artificial_Intelligence_setting_page
Replace inaccessible disabled option of NcCheckboxRadioSwitch with NcNoteCard
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/components/AdminAI.vue14
1 files changed, 9 insertions, 5 deletions
diff --git a/apps/settings/src/components/AdminAI.vue b/apps/settings/src/components/AdminAI.vue
index 6a3f30451e9..ea444fc25cf 100644
--- a/apps/settings/src/components/AdminAI.vue
+++ b/apps/settings/src/components/AdminAI.vue
@@ -31,9 +31,9 @@
</NcCheckboxRadioSwitch>
</template>
<template v-if="!hasStt">
- <NcCheckboxRadioSwitch disabled type="radio">
+ <NcNoteCard type="info">
{{ t('settings', 'None of your currently installed apps provide Speech-To-Text functionality') }}
- </NcCheckboxRadioSwitch>
+ </NcNoteCard>
</template>
</NcSettingsSection>
<NcSettingsSection :name="t('settings', 'Image generation')"
@@ -49,9 +49,9 @@
</NcCheckboxRadioSwitch>
</template>
<template v-if="!hasText2ImageProviders">
- <NcCheckboxRadioSwitch disabled type="radio">
+ <NcNoteCard type="info">
{{ t('settings', 'None of your currently installed apps provide image generation functionality') }}
- </NcCheckboxRadioSwitch>
+ </NcNoteCard>
</template>
</NcSettingsSection>
<NcSettingsSection :name="t('settings', 'Text processing')"
@@ -76,7 +76,9 @@
</div>
</template>
<template v-if="!hasTextProcessing">
- <p>{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}</p>
+ <NcNoteCard type="info">
+ {{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}
+ </NcNoteCard>
</template>
</NcSettingsSection>
</div>
@@ -88,6 +90,7 @@ import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadi
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
+import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
import draggable from 'vuedraggable'
import DragVerticalIcon from 'vue-material-design-icons/DragVertical.vue'
import ArrowDownIcon from 'vue-material-design-icons/ArrowDown.vue'
@@ -107,6 +110,7 @@ export default {
ArrowDownIcon,
ArrowUpIcon,
NcButton,
+ NcNoteCard,
},
data() {
return {