add readonly fields via api

This commit is contained in:
DocuSeal
2023-10-12 00:06:33 +03:00
parent 3dd7c47558
commit 69a3782903
4 changed files with 39 additions and 7 deletions
+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') {