vcomply-workflow-engine 2.6.102 → 2.6.104

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.
@@ -9209,19 +9209,17 @@
9209
9209
  }
9210
9210
  });
9211
9211
  console.log("payloadpayloadpayloadpayloadpayloadpayload ====>", payload);
9212
- // this.riskService.addBulkRisk(payload).subscribe((res: any) => {
9213
- // this.loader = false;
9214
- // this.showExcel = false;
9215
- // this.showSmiley = true;
9216
- // this.riskData = res;
9217
- // },
9218
- // err => {
9219
- // console.log(err);
9220
- // this.loader = false;
9221
- // this.showExcel = false;
9222
- // this.snackBar.show('OOPS! Something went wrong and the page could not be loaded. Could you please try one more time?', 'alert');
9223
- // }
9224
- // );
9212
+ this.riskService.addBulkRisk(payload).subscribe(function (res) {
9213
+ _this.loader = false;
9214
+ _this.showExcel = false;
9215
+ _this.showSmiley = true;
9216
+ _this.riskData = res;
9217
+ }, function (err) {
9218
+ console.log(err);
9219
+ _this.loader = false;
9220
+ _this.showExcel = false;
9221
+ _this.snackBar.show('OOPS! Something went wrong and the page could not be loaded. Could you please try one more time?', 'alert');
9222
+ });
9225
9223
  };
9226
9224
  AddMultipleRiskComponent.prototype.returnIds = function (item, key) {
9227
9225
  switch (key) {
@@ -29968,7 +29966,7 @@
29968
29966
  }
29969
29967
  };
29970
29968
  FrequencyDialogContainerComponent.prototype.isInvalid = function () {
29971
- var _a, _b, _c;
29969
+ var _a, _b, _c, _d;
29972
29970
  var isInvalid = false;
29973
29971
  var frequencyDetails = (_b = (_a = this.frequencyData) === null || _a === void 0 ? void 0 : _a.pattern) === null || _b === void 0 ? void 0 : _b.split('~');
29974
29972
  switch (this.frequencyTab) {
@@ -30032,7 +30030,7 @@
30032
30030
  case 'oneTime':
30033
30031
  if ((frequencyDetails === null || frequencyDetails === void 0 ? void 0 : frequencyDetails.length) > 0) {
30034
30032
  var selectedTime = moment__namespace(frequencyDetails[3] + "-" + frequencyDetails[2] + "-" + frequencyDetails[1] + " " + this.frequencyData.timeIn12hr, 'DD-MM-YYYY HH:mm a').unix();
30035
- if (Date.now() / 1000 > selectedTime) {
30033
+ if (((_d = this.frequencyService.changeTimeZone(new Date())) === null || _d === void 0 ? void 0 : _d.getTime()) / 1000 > selectedTime) {
30036
30034
  this.snackbar.show('Please set a future date.', 'alert');
30037
30035
  isInvalid = true;
30038
30036
  break;