diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-09-23 17:20:15 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-09-23 17:20:15 +0200 |
commit | b539c9b34c246eb7bfc4afea92ae095cb1c38e59 (patch) | |
tree | bd89628ecb0066a2f27675cf9bf5cfc05753928c /client/src/app/shared/users | |
parent | d74a0680f72021f82c2718cbf6c490a7715a9e35 (diff) | |
download | PeerTube-b539c9b34c246eb7bfc4afea92ae095cb1c38e59.tar.gz PeerTube-b539c9b34c246eb7bfc4afea92ae095cb1c38e59.tar.zst PeerTube-b539c9b34c246eb7bfc4afea92ae095cb1c38e59.zip |
Client: display created user date
Diffstat (limited to 'client/src/app/shared/users')
-rw-r--r-- | client/src/app/shared/users/user.model.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 { | |||
2 | id: string; | 2 | id: string; |
3 | username: string; | 3 | username: string; |
4 | role: string; | 4 | role: string; |
5 | createdDate: Date; | ||
5 | 6 | ||
6 | constructor(hash: { id: string, username: string, role: string }) { | 7 | constructor(hash: { id: string, username: string, role: string, createdDate: Date }) { |
7 | this.id = hash.id; | 8 | this.id = hash.id; |
8 | this.username = hash.username; | 9 | this.username = hash.username; |
9 | this.role = hash.role; | 10 | this.role = hash.role; |
11 | this.createdDate = hash.createdDate; | ||
10 | } | 12 | } |
11 | 13 | ||
12 | isAdmin() { | 14 | isAdmin() { |