mirror of
https://github.com/goharbor/harbor.git
synced 2024-09-29 13:57:33 +02: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
|
//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) {
|
if (user.has_admin_role === 0) {
|
||||||
updatedUser.has_admin_role = 1;//Set as admin
|
updatedUser.has_admin_role = 1;//Set as admin
|
||||||
|
@ -5,10 +5,6 @@
|
|||||||
* @class User
|
* @class User
|
||||||
*/
|
*/
|
||||||
export class User {
|
export class User {
|
||||||
constructor(userId: number){
|
|
||||||
this.user_id = userId;
|
|
||||||
}
|
|
||||||
|
|
||||||
user_id: number;
|
user_id: number;
|
||||||
username?: string;
|
username?: string;
|
||||||
realname?: string;
|
realname?: string;
|
||||||
|
Loading…
Reference in New Issue
Block a user