Users fix

This commit is contained in:
Amritanshu
2019-06-20 00:23:31 +05:30
parent 93743bdc8e
commit c51a9bd5ff
3 changed files with 26 additions and 27 deletions

View File

@ -22,6 +22,9 @@
<a mat-raised-button routerLink="/roles">
Roles
</a>
<a mat-raised-button routerLink="/users">
Users
</a>
<a mat-raised-button routerLink="/logout" *ngIf="nameObject | async as name">
<mat-icon>account_box</mat-icon>
Logout {{name}}

View File

@ -25,11 +25,11 @@
<mat-checkbox formControlName="lockedOut">Is Locked Out?</mat-checkbox>
</div>
<mat-divider></mat-divider>
<div formArrayName="groups">
<div fxLayout="row" *ngFor="let g of item.groups; index as i" [formGroupName]="i" fxLayout="row"
<div formArrayName="roles">
<div fxLayout="row" *ngFor="let r of item.roles; index as i" [formGroupName]="i" fxLayout="row"
fxLayoutAlign="space-around start" fxLayout.lt-md="column" fxLayoutGap="20px"
fxLayoutGap.lt-md="0px">
<mat-checkbox formControlName="group" fxFlex>{{g.name}}</mat-checkbox>
<mat-checkbox formControlName="role" fxFlex>{{r.name}}</mat-checkbox>
</div>
</div>
</form>