@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.
@@ -5057,7 +5057,7 @@ var GeneralInformationWAComponent = /** @class */ (function () {
5057
5057
  this.updateTemplate((_l = this.getControl('template')) === null || _l === void 0 ? void 0 : _l.value);
5058
5058
  };
5059
5059
  GeneralInformationWAComponent.prototype.handleChangeTemplate = function (useExisting) {
5060
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
5060
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
5061
5061
  (_a = this.getControl('isDownloadVariableXLS')) === null || _a === void 0 ? void 0 : _a.setValue(false);
5062
5062
  this.variables.clear();
5063
5063
  this.updateVariableDownloadXLS(false);
@@ -5067,13 +5067,17 @@ var GeneralInformationWAComponent = /** @class */ (function () {
5067
5067
  (_d = this.getControl('text')) === null || _d === void 0 ? void 0 : _d.clearValidators();
5068
5068
  (_e = this.getControl('text')) === null || _e === void 0 ? void 0 : _e.updateValueAndValidity();
5069
5069
  (_f = this.getControl('template')) === null || _f === void 0 ? void 0 : _f.updateValueAndValidity();
5070
+ var fromValue = (_g = this.getControl('from')) === null || _g === void 0 ? void 0 : _g.value;
5071
+ if (fromValue) {
5072
+ this.getTemplateOptionService(fromValue);
5073
+ }
5070
5074
  }
5071
5075
  else {
5072
- (_g = this.getControl('template')) === null || _g === void 0 ? void 0 : _g.reset();
5073
- (_h = this.getControl('template')) === null || _h === void 0 ? void 0 : _h.clearValidators();
5074
- (_j = this.getControl('text')) === null || _j === void 0 ? void 0 : _j.setValidators([Validators$1.required, Validators$1.max(1024)]);
5075
- (_k = this.getControl('text')) === null || _k === void 0 ? void 0 : _k.updateValueAndValidity();
5076
- (_l = this.getControl('template')) === null || _l === void 0 ? void 0 : _l.updateValueAndValidity();
5076
+ (_h = this.getControl('template')) === null || _h === void 0 ? void 0 : _h.reset();
5077
+ (_j = this.getControl('template')) === null || _j === void 0 ? void 0 : _j.clearValidators();
5078
+ (_k = this.getControl('text')) === null || _k === void 0 ? void 0 : _k.setValidators([Validators$1.required, Validators$1.max(1024)]);
5079
+ (_l = this.getControl('text')) === null || _l === void 0 ? void 0 : _l.updateValueAndValidity();
5080
+ (_m = this.getControl('template')) === null || _m === void 0 ? void 0 : _m.updateValueAndValidity();
5077
5081
  }
5078
5082
  };
5079
5083
  GeneralInformationWAComponent.prototype.handleChangeFrom = function (value) {