@arsedizioni/ars-utils 19.0.125 → 19.0.126

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.
@@ -2218,6 +2218,7 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2218
2218
  else if (this.hasAnySelection()) {
2219
2219
  documentIds = this.selection?.all?.map(n => n.documentId);
2220
2220
  }
2221
+ console.log("updated 1");
2221
2222
  return this.clipperService.updateState({ documentIds: documentIds, isRead: value })
2222
2223
  .subscribe(r => {
2223
2224
  if (r.success) {
@@ -2238,13 +2239,15 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
2238
2239
  }
2239
2240
  });
2240
2241
  }
2242
+ console.log("updated 2");
2241
2243
  // Update dashboard
2242
2244
  if (changed > 0) {
2243
2245
  this.clipperService.updateUnreadItems(ClipperUtils.getClipperModuleFromModel(item), item.model, value ? -1 : 1);
2244
2246
  this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
2245
- console.log("unread updated outer");
2246
2247
  this.changeDetector.markForCheck();
2247
2248
  }
2249
+ this.broadcastService.sendMessage(ClipperMessages.COMMAND_DASHBOARD_UPDATED);
2250
+ this.changeDetector.markForCheck();
2248
2251
  }
2249
2252
  });
2250
2253
  }