bugfixing

This commit is contained in:
2020-06-14 15:46:24 +02:00
parent 1e1e127f13
commit 19b28453d3
36 changed files with 175 additions and 97 deletions

View File

@@ -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(';');

View File

@@ -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> {