Skip to content

Commit

Permalink
fix(files): replace inaccessible disabled option of NcCheckboxRadioSw…
Browse files Browse the repository at this point in the history
…itch with NcNoteCard

Signed-off-by: julia.kirschenheuter <[email protected]>
  • Loading branch information
JuliaKirschenheuter committed Feb 3, 2024
1 parent fad7234 commit 8f5d05c
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions apps/settings/src/components/AdminAI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
Expand All @@ -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')"
Expand All @@ -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>
Expand All @@ -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'
Expand All @@ -107,6 +110,7 @@ export default {
ArrowDownIcon,
ArrowUpIcon,
NcButton,
NcNoteCard,
},
data() {
return {
Expand Down

0 comments on commit 8f5d05c

Please sign in to comment.