From 69f616ab3aeefd6ce330600604df90f2f48bfe3b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 11 Jun 2017 11:02:35 +0200 Subject: Use shared models --- client/src/app/shared/users/user.model.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/users') diff --git a/client/src/app/shared/users/user.model.ts b/client/src/app/shared/users/user.model.ts index f7859f495..09722704a 100644 --- a/client/src/app/shared/users/user.model.ts +++ b/client/src/app/shared/users/user.model.ts @@ -1,6 +1,9 @@ -export class User { +import { User as UserServerModel } from '../../../../../shared'; + +export class User implements UserServerModel { id: number; username: string; + email: string; role: string; displayNSFW: boolean; createdAt: Date; @@ -8,12 +11,14 @@ export class User { constructor(hash: { id: number, username: string, + email: string, role: string, displayNSFW?: boolean, createdAt?: Date, }) { this.id = hash.id; this.username = hash.username; + this.email = hash.email; this.role = hash.role; this.displayNSFW = hash.displayNSFW; -- cgit v1.2.3