notification
This commit is contained in:
@@ -1 +1 @@
|
||||
<of-notification-list [notifications]="notifications$ | async"></of-notification-list>
|
||||
<of-notification-list [notificationPage]="notificationPage$ | async"></of-notification-list>
|
||||
|
||||
@@ -8,18 +8,20 @@ import { NotificationSelector } from '../../store';
|
||||
import { AuthSelector } from '../../../member/store';
|
||||
import { Member } from '@overflow/commons-typescript/model/member';
|
||||
import { PageParams } from '@overflow/commons-typescript/model/commons/PageParams';
|
||||
import { Page } from '@overflow/commons-typescript/model/commons/Page';
|
||||
import { Notification } from '@overflow/commons-typescript/model/notification';
|
||||
|
||||
@Component({
|
||||
selector: 'of-notification-container',
|
||||
templateUrl: './list-container.component.html',
|
||||
})
|
||||
export class NotificationListContainerComponent implements OnInit {
|
||||
notifications$: Observable<Notification[]>;
|
||||
notificationPage$: Observable<Page<Notification>>;
|
||||
|
||||
constructor(
|
||||
private store: Store<ListStore.State>,
|
||||
) {
|
||||
this.notifications$ = store.pipe(select(NotificationSelector.select('notifications')));
|
||||
this.notificationPage$ = store.pipe(select(NotificationSelector.select('page')));
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
Reference in New Issue
Block a user