From b539c9b34c246eb7bfc4afea92ae095cb1c38e59 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Sep 2016 17:20:15 +0200 Subject: [PATCH] Client: display created user date --- client/src/app/admin/users/user-list/user-list.component.html | 2 ++ client/src/app/shared/users/user.model.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) 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() { -- 2.25.1