From: Chocobozzz Date: Fri, 23 Sep 2016 15:20:15 +0000 (+0200) Subject: Client: display created user date X-Git-Tag: v0.0.1-alpha~728 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b539c9b34c246eb7bfc4afea92ae095cb1c38e59;p=oweals%2Fpeertube.git Client: display created user date --- diff --git a/client/src/app/admin/users/user-list/user-list.component.html b/client/src/app/admin/users/user-list/user-list.component.html index 2ef9ea0e0..328b1be77 100644 --- a/client/src/app/admin/users/user-list/user-list.component.html +++ b/client/src/app/admin/users/user-list/user-list.component.html @@ -5,6 +5,7 @@ ID Username + Created Date Remove @@ -13,6 +14,7 @@ {{ user.id }} {{ user.username }} + {{ user.createdDate | date: 'medium' }} diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index 0f34d4480..b775cb8e7 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts @@ -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() {