notification

This commit is contained in:
insanity
2018-05-25 12:51:42 +09:00
parent ab6a38fbcf
commit 1a76ce57a2
5 changed files with 1825 additions and 1822 deletions

View File

@@ -3,7 +3,7 @@
<button type="button" label="Mark all as read" pButton class="ui-button-width-fit" (click)="onMarkAllAsRead()"></button>
</div>
<p-table [value]="notifications" selectionMode="single" (onRowSelect)="onRowSelect($event)" >
<p-table [value]="notificationPage.content" selectionMode="single" (onRowSelect)="onRowSelect($event)" >
<ng-template pTemplate="header">
<tr>
<th style="width:9em">Date</th>

View File

@@ -1,5 +1,6 @@
import { Component, Input } from '@angular/core';
import { Notification } from '@overflow/commons-typescript/model/notification';
import { Page } from '@overflow/commons-typescript/model/commons/Page';
@Component({
selector: 'of-notification-list',
@@ -7,7 +8,7 @@ import { Notification } from '@overflow/commons-typescript/model/notification';
})
export class NotificationListComponent {
@Input() notifications: Notification[];
@Input() notificationPage: Page<Notification>;
constructor(
) { }