simple role management

This commit is contained in:
2020-04-25 14:53:35 +02:00
committed by smuddy
parent 732353f5bd
commit e17b8acc9c
29 changed files with 219 additions and 31 deletions

View File

@@ -0,0 +1,18 @@
<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-card>