1010 :warningInvalid =" answerType.warningInvalid"
1111 :contentValid =" contentValid"
1212 :shiftDragHandle =" shiftDragHandle"
13+ :errorMessage =" errorMessage"
1314 v-on =" commonListeners" >
1415 <template #actions >
1516 <NcActionCheckbox
7273 :name =" name || undefined"
7374 :aria-labelledby =" titleId"
7475 :aria-describedby =" description ? descriptionId : undefined" >
75- <NcNoteCard v-if =" hasError" :id =" errorId" type =" error" >
76- {{ errorMessage }}
77- </NcNoteCard >
7876 <NcCheckboxRadioSwitch
7977 v-for =" answer in choices"
8078 :key =" answer.id"
@@ -186,7 +184,6 @@ import NcActionInput from '@nextcloud/vue/components/NcActionInput'
186184import NcCheckboxRadioSwitch from ' @nextcloud/vue/components/NcCheckboxRadioSwitch'
187185import NcInputField from ' @nextcloud/vue/components/NcInputField'
188186import NcLoadingIcon from ' @nextcloud/vue/components/NcLoadingIcon'
189- import NcNoteCard from ' @nextcloud/vue/components/NcNoteCard'
190187import IconCheckboxBlankOutline from ' vue-material-design-icons/CheckboxBlankOutline.vue'
191188import IconContentPaste from ' vue-material-design-icons/ContentPaste.vue'
192189import IconRadioboxBlank from ' vue-material-design-icons/RadioboxBlank.vue'
@@ -215,7 +212,6 @@ export default {
215212 NcCheckboxRadioSwitch,
216213 NcInputField,
217214 NcLoadingIcon,
218- NcNoteCard,
219215 OptionInputDialog,
220216 Question,
221217 },
@@ -225,10 +221,6 @@ export default {
225221
226222 data () {
227223 return {
228- /**
229- * The shown error message
230- */
231- errorMessage: null ,
232224 /**
233225 * This is used to cache the "other" answer, meaning if the user:
234226 * checks "other" types text, unchecks "other" and then re-check "other" the typed text is preserved
@@ -249,10 +241,6 @@ export default {
249241 return this .answerType .unique === true
250242 },
251243
252- hasError () {
253- return !! this .errorMessage
254- },
255-
256244 shiftDragHandle () {
257245 return ! this .readOnly && this .options .length !== 0 && ! this .isLastEmpty
258246 },
@@ -272,10 +260,6 @@ export default {
272260 return this .isUnique ? this .values ? .[0 ] : this .values
273261 },
274262
275- errorId () {
276- return ` q${ this .index } _error`
277- },
278-
279263 allowOtherAnswer () {
280264 return this .extraSettings ? .allowOtherAnswer ?? false
281265 },
0 commit comments