mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-11-22 16:56:39 -06:00
Client: display created user date
This commit is contained in:
parent
d74a0680f7
commit
b539c9b34c
@ -5,6 +5,7 @@
|
||||
<tr>
|
||||
<th class="table-column-id">ID</th>
|
||||
<th>Username</th>
|
||||
<th>Created Date</th>
|
||||
<th class="text-right">Remove</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -13,6 +14,7 @@
|
||||
<tr *ngFor="let user of users">
|
||||
<td>{{ user.id }}</td>
|
||||
<td>{{ user.username }}</td>
|
||||
<td>{{ user.createdDate | date: 'medium' }}</td>
|
||||
<td class="text-right">
|
||||
<span class="glyphicon glyphicon-remove" *ngIf="!user.isAdmin()" (click)="removeUser(user)"></span>
|
||||
</td>
|
||||
|
@ -2,11 +2,13 @@ export class User {
|
||||
id: string;
|
||||
username: string;
|
||||
role: string;
|
||||
createdDate: Date;
|
||||
|
||||
constructor(hash: { id: string, username: string, role: string }) {
|
||||
constructor(hash: { id: string, username: string, role: string, createdDate: Date }) {
|
||||
this.id = hash.id;
|
||||
this.username = hash.username;
|
||||
this.role = hash.role;
|
||||
this.createdDate = hash.createdDate;
|
||||
}
|
||||
|
||||
isAdmin() {
|
||||
|
Loading…
Reference in New Issue
Block a user