Added group permissions. Added some global styles. Made groups rely on services' data.

This commit is contained in:
Tom
2025-03-22 21:58:30 +00:00
parent d19c5445d6
commit 9de4424736
38 changed files with 936 additions and 137 deletions
@@ -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>