mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
document conditions
This commit is contained in:
1 parent
38b5eccb65
commit
4429d742b3
17 files changed
+252
-65
No files matched your search
@@ -229,6 +229,10 @@ export default {
|
||||
type: Array,
|
||||
required: true
|
||||
},
|
||||
template: {
|
||||
type: Object,
|
||||
required: true
|
||||
},
|
||||
withHelp: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -380,6 +384,14 @@ export default {
|
||||
})
|
||||
})
|
||||
|
||||
this.template.schema.forEach((item) => {
|
||||
(item.conditions || []).forEach((c) => {
|
||||
if (c.field_uuid === field.uuid) {
|
||||
item.conditions.splice(item.conditions.indexOf(c), 1)
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
this.save()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user