Skip to content

Commit f9fe94c

Browse files
fix(files): replace inaccessible disabled option of NcCheckboxRadioSwitch with NcNoteCard
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
1 parent 03774ad commit f9fe94c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

apps/settings/src/components/AdminAI.vue

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
</NcCheckboxRadioSwitch>
3232
</template>
3333
<template v-if="!hasStt">
34-
<NcCheckboxRadioSwitch disabled type="radio">
34+
<NcNoteCard type="warning">
3535
{{ t('settings', 'None of your currently installed apps provide Speech-To-Text functionality') }}
36-
</NcCheckboxRadioSwitch>
36+
</NcNoteCard>
3737
</template>
3838
</NcSettingsSection>
3939
<NcSettingsSection :name="t('settings', 'Image generation')"
@@ -49,9 +49,9 @@
4949
</NcCheckboxRadioSwitch>
5050
</template>
5151
<template v-if="!hasText2ImageProviders">
52-
<NcCheckboxRadioSwitch disabled type="radio">
52+
<NcNoteCard type="warning">
5353
{{ t('settings', 'None of your currently installed apps provide image generation functionality') }}
54-
</NcCheckboxRadioSwitch>
54+
</NcNoteCard>
5555
</template>
5656
</NcSettingsSection>
5757
<NcSettingsSection :name="t('settings', 'Text processing')"
@@ -76,7 +76,9 @@
7676
</div>
7777
</template>
7878
<template v-if="!hasTextProcessing">
79-
<p>{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}</p>
79+
<NcNoteCard type="warning">
80+
{{ t('settings', 'None of your currently installed apps provide Text processing functionality') }}
81+
</NcNoteCard>
8082
</template>
8183
</NcSettingsSection>
8284
</div>
@@ -88,6 +90,7 @@ import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadi
8890
import NcSettingsSection from '@nextcloud/vue/dist/Components/NcSettingsSection.js'
8991
import NcSelect from '@nextcloud/vue/dist/Components/NcSelect.js'
9092
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
93+
import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js'
9194
import draggable from 'vuedraggable'
9295
import DragVerticalIcon from 'vue-material-design-icons/DragVertical.vue'
9396
import ArrowDownIcon from 'vue-material-design-icons/ArrowDown.vue'
@@ -107,6 +110,7 @@ export default {
107110
ArrowDownIcon,
108111
ArrowUpIcon,
109112
NcButton,
113+
NcNoteCard,
110114
},
111115
data() {
112116
return {

0 commit comments

Comments
 (0)