@sumaris-net/ngx-components 1.21.0-beta5 → 1.21.0-beta8

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.
@@ -30227,9 +30227,9 @@
30227
30227
  console.debug(this._logPrefix + "Loading user events...", filter);
30228
30228
  filter = this.asFilter(filter);
30229
30229
  // Force recipient to current issuer, if not admin and not specified
30230
- if (isEmptyArray(filter.recipients) || !this.accountService.isAdmin()) {
30230
+ if (isEmptyArray(filter === null || filter === void 0 ? void 0 : filter.recipients) || !this.accountService.isAdmin()) {
30231
30231
  var recipient = this.defaultRecipient();
30232
- if (!((_a = filter.recipients) === null || _a === void 0 ? void 0 : _a.includes(recipient))) {
30232
+ if (!((_a = filter === null || filter === void 0 ? void 0 : filter.recipients) === null || _a === void 0 ? void 0 : _a.includes(recipient))) {
30233
30233
  console.warn('[user-events-service] Force user event filter.recipient=' + recipient);
30234
30234
  filter.recipients = [recipient];
30235
30235
  }
@@ -30984,15 +30984,12 @@
30984
30984
  });
30985
30985
  UserEventNotificationComponent.prototype.ngOnInit = function () {
30986
30986
  var _this = this;
30987
- var _a;
30988
30987
  if (isNil(this.userEventService)) {
30989
30988
  console.warn(this._logPrefix + "No service injected");
30990
30989
  this.disabled = true;
30991
30990
  return;
30992
30991
  }
30993
- this._subscriptions.add(this.userEventService.watchAll(0, 10, 'creationDate', "desc", {
30994
- recipients: [(_a = this.accountService.person) === null || _a === void 0 ? void 0 : _a.pubkey]
30995
- }).subscribe(function (value) {
30992
+ this._subscriptions.add(this.userEventService.watchAll(0, 10, 'creationDate', "desc").subscribe(function (value) {
30996
30993
  var data = value.data;
30997
30994
  if (_this.debug) {
30998
30995
  console.debug(_this._logPrefix + "Receiving user events", data);
@@ -31367,7 +31364,7 @@
31367
31364
  ], exports.JobProgression);
31368
31365
 
31369
31366
  var JobProgressionServiceToken = new i0.InjectionToken('JobProgressionService');
31370
- var jobProgressionSubscription = core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n updateDate\n }\n}"], ["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n updateDate\n }\n}"])));
31367
+ var jobProgressionSubscription = core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n }\n}"], ["subscription UpdateJobProgression($id: Int!, $interval: Int){\n data: updateJobProgression(id: $id, interval: $interval) {\n id\n message\n current\n total\n }\n}"])));
31371
31368
  var JobProgressionService = /** @class */ (function (_super) {
31372
31369
  __extends(JobProgressionService, _super);
31373
31370
  function JobProgressionService(graphql, environment) {