kwikid-forms 0.3.11 → 0.3.13

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.
@@ -4810,12 +4810,14 @@
4810
4810
  });
4811
4811
  };
4812
4812
  KwikIDFormViewComponent.prototype.showApiLoader = function () {
4813
+ this.loading = true;
4813
4814
  this.viewFormsButton["disabled"] = true;
4814
4815
  this.viewFormsButton["showLoader"] = true;
4815
4816
  this.saveFormButton["disabled"] = true;
4816
4817
  this.saveFormButton["showLoader"] = true;
4817
4818
  };
4818
4819
  KwikIDFormViewComponent.prototype.hideApiLoader = function () {
4820
+ this.loading = false;
4819
4821
  this.viewFormsButton["disabled"] = false;
4820
4822
  this.viewFormsButton["showLoader"] = false;
4821
4823
  this.saveFormButton["disabled"] = false;
@@ -5408,20 +5410,23 @@
5408
5410
  KwikIDFormViewComponent.prototype.taskApiCall = function (action, object) {
5409
5411
  return __awaiter(this, void 0, void 0, function () {
5410
5412
  var apiConfig, response;
5411
- var _h;
5412
- return __generator(this, function (_j) {
5413
- switch (_j.label) {
5413
+ var _h, _j;
5414
+ return __generator(this, function (_k) {
5415
+ switch (_k.label) {
5414
5416
  case 0:
5415
5417
  this.showApiLoader();
5416
5418
  apiConfig = this.formConfig.apis[action.props.formApiKey];
5417
5419
  return [4 /*yield*/, this.handleTaskApiCall(apiConfig)];
5418
5420
  case 1:
5419
- response = _j.sent();
5421
+ response = _k.sent();
5420
5422
  apiConfig = response.api;
5421
5423
  this.formConfig = kwikidToolkit.setValueToObjectPath(this.formConfig, "apis." + action.props.formApiKey, apiConfig);
5422
5424
  this.taskData = kwikidToolkit.mergeObjects(this.taskData, (_h = {},
5423
5425
  _h[action.props.formApiKey] = apiConfig.response.value,
5424
5426
  _h));
5427
+ this.formData = kwikidToolkit.mergeObjects(this.formData, (_j = {},
5428
+ _j[action.props.formApiKey] = apiConfig.response.value,
5429
+ _j));
5425
5430
  this.waitingForChanges = false;
5426
5431
  this.hideApiLoader();
5427
5432
  return [2 /*return*/];