@social-mail/social-mail-client 1.4.116 → 1.4.118

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.
@@ -40330,16 +40330,16 @@ System.register(["tslib", "@web-atoms/core/dist/di/DITransient", "@web-atoms/cor
40330
40330
  email.status = "deleted";
40331
40331
  });
40332
40332
  }
40333
- publishMail(email) {
40333
+ approveMail(email) {
40334
40334
  return __awaiter(this, void 0, void 0, function* () {
40335
40335
  const {
40336
40336
  emailID
40337
40337
  } = email;
40338
40338
  yield this.entityService.save(Email.create({
40339
40339
  emailID,
40340
- status: "published"
40340
+ status: "approved"
40341
40341
  }));
40342
- email.status = "published";
40342
+ email.status = "approved";
40343
40343
  });
40344
40344
  }
40345
40345
  };
@@ -40415,6 +40415,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40415
40415
  }, {
40416
40416
  label: "In Queue",
40417
40417
  value: "pending-approval"
40418
+ }, {
40419
+ label: "Approved",
40420
+ value: "approved"
40418
40421
  }, {
40419
40422
  label: "Deleted",
40420
40423
  value: "deleted"
@@ -40481,10 +40484,10 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40481
40484
  height: 200
40482
40485
  }, XNode.create("section", Object.assign({}, renderMailPromise({
40483
40486
  email
40484
- }))))), /pending|published|deleted/i.test(this.status) && XNode.create("footer", null, !/publish/i.test(this.status) && XNode.create(AddIconTextButton, {
40485
- "data-click-event": "publish-mail",
40487
+ }))))), /pending|approved|deleted/i.test(this.status) && XNode.create("footer", null, !/approved/i.test(this.status) && XNode.create(AddIconTextButton, {
40488
+ "data-click-event": "approve-mail",
40486
40489
  icon: "fas fa-check",
40487
- text: "Publish"
40490
+ text: "Approve"
40488
40491
  }), !/deleted/i.test(this.status) && XNode.create(DeleteIconTextButton, {
40489
40492
  "data-click-event": "delete-mail",
40490
40493
  text: "Delete"
@@ -40522,9 +40525,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40522
40525
  this.version++;
40523
40526
  });
40524
40527
  }
40525
- publishMail(email) {
40528
+ approveMail(email) {
40526
40529
  return __awaiter(this, void 0, void 0, function* () {
40527
- yield this.channelService.deleteMail(email);
40530
+ yield this.channelService.approveMail(email);
40528
40531
  this.version++;
40529
40532
  });
40530
40533
  }
@@ -40539,9 +40542,9 @@ System.register(["tslib", "@web-atoms/web-controls/dist/mobile-app/MobileApp", "
40539
40542
  confirm: "Are you sure you want to delete this email?"
40540
40543
  }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ChannelDetailPage.prototype, "deleteMail", null);
40541
40544
  __decorate([Action({
40542
- onEvent: "publish-mail",
40543
- confirm: "Are you sure you want to publish this email?"
40544
- }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ChannelDetailPage.prototype, "publishMail", null);
40545
+ onEvent: "approve-mail",
40546
+ confirm: "Are you sure you want to approve this email?"
40547
+ }), __metadata("design:type", Function), __metadata("design:paramtypes", [Object]), __metadata("design:returntype", Promise)], ChannelDetailPage.prototype, "approveMail", null);
40545
40548
  }
40546
40549
  };
40547
40550
  });