mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-02 04:51:22 +01:00
fix user constructor issue
This commit is contained in:
parent
ad79cb9e29
commit
03aa346efc
@ -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
|
||||
|
@ -5,10 +5,6 @@
|
||||
* @class User
|
||||
*/
|
||||
export class User {
|
||||
constructor(userId: number){
|
||||
this.user_id = userId;
|
||||
}
|
||||
|
||||
user_id: number;
|
||||
username?: string;
|
||||
realname?: string;
|
||||
|
Loading…
Reference in New Issue
Block a user