1
0
mirror of https://github.com/goharbor/harbor.git synced 2025-03-29 23:06:29 +01:00

fix user constructor issue

This commit is contained in:
Steven Zou 2017-03-30 13:40:36 +08:00 committed by kunw
parent 9b9be0253c
commit aa8edc5f15
2 changed files with 2 additions and 5 deletions
src/ui_ng/src/app/user

View File

@ -130,7 +130,8 @@ export class UserComponent implements OnInit, OnDestroy {
}
//Value copy
let updatedUser: User = new User(user.user_id);;
let updatedUser: User = new User();
updatedUser.user_id = user.user_id;
if (user.has_admin_role === 0) {
updatedUser.has_admin_role = 1;//Set as admin

View File

@ -5,10 +5,6 @@
* @class User
*/
export class User {
constructor(userId: number){
this.user_id = userId;
}
user_id: number;
username?: string;
realname?: string;