@adlfe/campaign-management-library 2.15.7 → 2.15.8

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.
@@ -4748,7 +4748,7 @@ let GeneralInformationWAComponent = class GeneralInformationWAComponent {
4748
4748
  this.updateTemplate((_l = this.getControl('template')) === null || _l === void 0 ? void 0 : _l.value);
4749
4749
  }
4750
4750
  handleChangeTemplate(useExisting) {
4751
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
4751
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
4752
4752
  (_a = this.getControl('isDownloadVariableXLS')) === null || _a === void 0 ? void 0 : _a.setValue(false);
4753
4753
  this.variables.clear();
4754
4754
  this.updateVariableDownloadXLS(false);
@@ -4758,13 +4758,17 @@ let GeneralInformationWAComponent = class GeneralInformationWAComponent {
4758
4758
  (_d = this.getControl('text')) === null || _d === void 0 ? void 0 : _d.clearValidators();
4759
4759
  (_e = this.getControl('text')) === null || _e === void 0 ? void 0 : _e.updateValueAndValidity();
4760
4760
  (_f = this.getControl('template')) === null || _f === void 0 ? void 0 : _f.updateValueAndValidity();
4761
+ const fromValue = (_g = this.getControl('from')) === null || _g === void 0 ? void 0 : _g.value;
4762
+ if (fromValue) {
4763
+ this.getTemplateOptionService(fromValue);
4764
+ }
4761
4765
  }
4762
4766
  else {
4763
- (_g = this.getControl('template')) === null || _g === void 0 ? void 0 : _g.reset();
4764
- (_h = this.getControl('template')) === null || _h === void 0 ? void 0 : _h.clearValidators();
4765
- (_j = this.getControl('text')) === null || _j === void 0 ? void 0 : _j.setValidators([Validators$1.required, Validators$1.max(1024)]);
4766
- (_k = this.getControl('text')) === null || _k === void 0 ? void 0 : _k.updateValueAndValidity();
4767
- (_l = this.getControl('template')) === null || _l === void 0 ? void 0 : _l.updateValueAndValidity();
4767
+ (_h = this.getControl('template')) === null || _h === void 0 ? void 0 : _h.reset();
4768
+ (_j = this.getControl('template')) === null || _j === void 0 ? void 0 : _j.clearValidators();
4769
+ (_k = this.getControl('text')) === null || _k === void 0 ? void 0 : _k.setValidators([Validators$1.required, Validators$1.max(1024)]);
4770
+ (_l = this.getControl('text')) === null || _l === void 0 ? void 0 : _l.updateValueAndValidity();
4771
+ (_m = this.getControl('template')) === null || _m === void 0 ? void 0 : _m.updateValueAndValidity();
4768
4772
  }
4769
4773
  }
4770
4774
  handleChangeFrom(value) {