multiple role management

This commit is contained in:
2020-04-25 15:32:53 +02:00
committed by smuddy
parent e17b8acc9c
commit 01d13ccea9
12 changed files with 99 additions and 42 deletions

View File

@@ -1,18 +1,3 @@
<app-card heading="registrierte Benutzer">
<div *ngFor="let user of users$|async" class="users">
<mat-form-field appearance="outline">
<mat-label>Name</mat-label>
<input (change)="onNameChanged(user.id, $event)" [ngModel]="user.name" matInput>
</mat-form-field>
<mat-form-field appearance="outline">
<mat-label>Rolle</mat-label>
<mat-select (ngModelChange)="onRoleChanged(user.id, $event)" [ngModel]="user.role">
<mat-option *ngFor="let role of ROLE_TYPES" [value]="role">{{role | role}}</mat-option>
</mat-select>
</mat-form-field>
</div>
<app-user *ngFor="let user of users$|async" [user]="user"></app-user>
</app-card>