@sumaris-net/ngx-components 1.21.0-beta11 → 1.21.0-beta14
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.
- package/bundles/sumaris-net.ngx-components.umd.js +3 -1
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/social/user-event/notification/user-event-notification.component.js +1 -2
- package/esm2015/src/app/social/user-event/user-event.service.js +5 -2
- package/fesm2015/sumaris-net.ngx-components.js +4 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/social/user-event/user-event.service.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -30258,6 +30258,9 @@
|
|
|
30258
30258
|
now = null;
|
|
30259
30259
|
}
|
|
30260
30260
|
var unreadCount = _this.unreadEvents(data);
|
|
30261
|
+
_this._count$.next(unreadCount);
|
|
30262
|
+
// Must re-order because of listenChanges result will add new event at the end
|
|
30263
|
+
data = EntityUtils.sort(data, page.sortBy, page.sortDirection);
|
|
30261
30264
|
return {
|
|
30262
30265
|
data: data,
|
|
30263
30266
|
total: toNumber(res === null || res === void 0 ? void 0 : res.total, unreadCount)
|
|
@@ -31008,7 +31011,6 @@
|
|
|
31008
31011
|
if (_this.debug) {
|
|
31009
31012
|
console.debug(_this._logPrefix + "Receiving new user events", data);
|
|
31010
31013
|
}
|
|
31011
|
-
_this.userEventsSubject.next(data);
|
|
31012
31014
|
}));
|
|
31013
31015
|
this._readEvent.subscribe(function (value) {
|
|
31014
31016
|
_this.userEventService.markAsRead(value);
|