deunderscore
parent
cd77434a69
commit
61c5b4f9bf
|
@ -24,7 +24,7 @@ import { NotificationState } from "./NotificationState";
|
||||||
* Useful for community notification counts, global notification counts, etc.
|
* Useful for community notification counts, global notification counts, etc.
|
||||||
*/
|
*/
|
||||||
export class SummarizedNotificationState extends NotificationState {
|
export class SummarizedNotificationState extends NotificationState {
|
||||||
private _totalStatesWithUnread = 0;
|
private totalStatesWithUnread = 0;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -34,7 +34,7 @@ export class SummarizedNotificationState extends NotificationState {
|
||||||
}
|
}
|
||||||
|
|
||||||
public get numUnreadStates(): number {
|
public get numUnreadStates(): number {
|
||||||
return this._totalStatesWithUnread;
|
return this.totalStatesWithUnread;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -56,7 +56,7 @@ export class SummarizedNotificationState extends NotificationState {
|
||||||
this._color = other.color;
|
this._color = other.color;
|
||||||
}
|
}
|
||||||
if (other.hasUnreadCount) {
|
if (other.hasUnreadCount) {
|
||||||
this._totalStatesWithUnread++;
|
this.totalStatesWithUnread++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue