@arsedizioni/ars-utils 21.1.16 → 21.1.17

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.
@@ -1936,27 +1936,6 @@ class ClipperSearchResultManager extends ClipperDocumentManager {
1936
1936
  return (this.filterParams.sectors?.filter(n => n.value === 'LR').length ?? 0) > 0;
1937
1937
  };
1938
1938
  }
1939
- ngOnInit() {
1940
- this.broadcastService.getMessage()
1941
- .pipe(takeUntil(this.unsubscribe))
1942
- .subscribe(message => {
1943
- if (message.id === ClipperMessages.DOCUMENT_READ) {
1944
- if (this.filterParams.showUnreadDocumentsOnly) {
1945
- if (this.snapshot) {
1946
- const p = this.snapshot.items?.findIndex(n => n.documentId !== message.data.document.documentId);
1947
- if (p != -1) {
1948
- this.snapshot.total--;
1949
- this.snapshot.items?.splice(p, 1);
1950
- if (this.snapshot.items?.length === 0) {
1951
- this.broadcastService.sendMessage(ClipperMessages.COMMAND_SEARCH_EMPTY_RESULT);
1952
- }
1953
- this.changeDetector.markForCheck();
1954
- }
1955
- }
1956
- }
1957
- }
1958
- });
1959
- }
1960
1939
  ngOnDestroy() {
1961
1940
  this.unsubscribe.next();
1962
1941
  this.unsubscribe.complete();