onshore-forms 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -200,11 +200,21 @@ class OnshoreFormsService {
|
|
|
200
200
|
lock() {
|
|
201
201
|
this._formTemplate.forEach((item) => {
|
|
202
202
|
item.locked = true;
|
|
203
|
+
if (item.subformArray) {
|
|
204
|
+
item.subformArray.forEach(subitem => {
|
|
205
|
+
subitem.locked = true;
|
|
206
|
+
});
|
|
207
|
+
}
|
|
203
208
|
});
|
|
204
209
|
}
|
|
205
210
|
unlock() {
|
|
206
211
|
this._formTemplate.forEach((item) => {
|
|
207
212
|
item.locked = false;
|
|
213
|
+
if (item.subformArray) {
|
|
214
|
+
item.subformArray.forEach(subitem => {
|
|
215
|
+
subitem.locked = false;
|
|
216
|
+
});
|
|
217
|
+
}
|
|
208
218
|
});
|
|
209
219
|
}
|
|
210
220
|
iterateNestedForm(form, formTemplate) {
|