add readonly fields via api

This commit is contained in:
DocuSeal committed 2023-10-12 17:23:59 +03:00
1 parent 3dd7c47558
commit 69a3782903
4 files changed
+39 -7

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ export default {
return this.currentStepFields[0]
},
stepFields () {
return this.fields.reduce((acc, f) => {
return this.fields.filter((f) => !f.readonly).reduce((acc, f) => {
const prevStep = acc[acc.length - 1]
if (f.type === 'checkbox' && Array.isArray(prevStep) && prevStep[0].type === 'checkbox') {