File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 61
61
:visible-locales =" visibleLocales"
62
62
:available-locales =" availableLocales"
63
63
:is-saving =" isSaving"
64
+ :show-error-footer =" showErrorFooter"
64
65
@change =" fieldChanged"
65
66
@page-submitted =" nextPage"
66
67
@previous-page =" setCurrentPage(false)"
@@ -135,6 +136,13 @@ export default {
135
136
* Async function, receiving data from form and returning {validationError, data} from useFetch
136
137
*/
137
138
customSubmit: Function ,
139
+ /** If the error summary is shown in the form's footer. */
140
+ showErrorFooter: {
141
+ type: Boolean ,
142
+ default () {
143
+ return true ;
144
+ },
145
+ },
138
146
},
139
147
emits: [
140
148
/** When the form props need to be updated. The payload is an object with any keys that need to be modified. */
Original file line number Diff line number Diff line change 20
20
aria-live =" polite"
21
21
>
22
22
<FormErrors
23
- v-if =" Object.keys(errors).length"
23
+ v-if =" Object.keys(errors).length && showErrorFooter "
24
24
:errors =" errors"
25
25
:fields =" fields"
26
26
@showField =" showField"
@@ -108,6 +108,12 @@ export default {
108
108
},
109
109
},
110
110
isSaving: Boolean ,
111
+ showErrorFooter: {
112
+ type: Boolean ,
113
+ default () {
114
+ return true ;
115
+ },
116
+ },
111
117
},
112
118
data () {
113
119
return {
You can’t perform that action at this time.
0 commit comments