bugfixing
This commit is contained in:
@@ -11,7 +11,7 @@ import {faTimes} from '@fortawesome/free-solid-svg-icons/faTimes';
|
||||
})
|
||||
export class UserComponent {
|
||||
public id: string;
|
||||
public name: string
|
||||
public name: string;
|
||||
public roles: string[];
|
||||
public ROLE_TYPES = ROLE_TYPES;
|
||||
public edit = false;
|
||||
@@ -24,7 +24,7 @@ export class UserComponent {
|
||||
this.id = value.id;
|
||||
this.name = value.name;
|
||||
this.roles = this.getRoleArray(value.role);
|
||||
};
|
||||
}
|
||||
|
||||
public async onRoleChanged(id: string, roles: string[]): Promise<void> {
|
||||
const role = roles.join(';');
|
||||
|
||||
@@ -20,7 +20,7 @@ export class NewComponent implements OnInit {
|
||||
email: new FormControl(null, [Validators.required, Validators.email]),
|
||||
name: new FormControl(null, [Validators.required]),
|
||||
password: new FormControl(null, [Validators.required, Validators.minLength(6)]),
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
public async onCreate(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user