aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src
diff options
context:
space:
mode:
authorjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2024-01-22 11:17:19 +0100
committerjulia.kirschenheuter <julia.kirschenheuter@nextcloud.com>2024-02-03 09:31:35 +0100
commit8f5d05c3d88ae9a1a20ffd73281455275b9e2c6a (patch)
tree83474fb7341861a76ae84514054cae2b3e1589da /apps/settings/src
parentfad72344c533f9321031a8dc24bf59d9424d225f (diff)
downloadnextcloud-server-8f5d05c3d88ae9a1a20ffd73281455275b9e2c6a.tar.gz
nextcloud-server-8f5d05c3d88ae9a1a20ffd73281455275b9e2c6a.zip
fix(files): replace inaccessible disabled option of NcCheckboxRadioSwitch with NcNoteCard
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Diffstat (limited to 'apps/settings/src')
-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 {