Added group permissions. Added some global styles. Made groups rely on services' data.
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
<mat-card>
|
||||
<mat-card-header>
|
||||
<mat-card-title-group>
|
||||
<mat-card-title>{{data.isNew ? "Add" : "Edit"}} Group Permission</mat-card-title>
|
||||
@if (data.group) {
|
||||
<mat-card-subtitle>in {{data.group.name}}</mat-card-subtitle>
|
||||
}
|
||||
</mat-card-title-group>
|
||||
</mat-card-header>
|
||||
|
||||
<mat-card-content>
|
||||
<policy-dropdown [control]="pathControl" />
|
||||
|
||||
<mat-form-field>
|
||||
<mat-label>Permission</mat-label>
|
||||
<mat-select matInput
|
||||
[formControl]="stateControl">
|
||||
@for (item of states; track $index) {
|
||||
<mat-option [value]="item.value">{{item.label}}</mat-option>
|
||||
}
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</mat-card-content>
|
||||
|
||||
<mat-card-actions class="actions">
|
||||
<button mat-raised-button
|
||||
(click)="dialogRef.close()">Cancel</button>
|
||||
|
||||
<button mat-raised-button
|
||||
disabled="{{pathControl.invalid || waitForResponse}}"
|
||||
(click)="submit()">{{data.isNew ? "Add" : "Save"}}</button>
|
||||
</mat-card-actions>
|
||||
|
||||
@if (responseError) {
|
||||
<mat-card-footer>
|
||||
<small class="error below">{{responseError}}</small>
|
||||
</mat-card-footer>
|
||||
}
|
||||
</mat-card>
|
||||
Reference in New Issue
Block a user