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

View File

@@ -25,7 +25,7 @@ const Policies = [
{ path: "tts.commands.version", description: "To use !version command" },
{ path: "tts.commands.voice", description: "To use !voice command" },
{ path: "tts.commands.voice.admin", description: "To use !voice command on others" },
]
];
@Component({
selector: 'policy-dropdown',
@@ -42,7 +42,7 @@ const Policies = [
})
export class PolicyDropdownComponent {
@Input() policy: string | null = '';
policyControl = new FormControl('', [Validators.required]);
@Input({ alias: 'control' }) policyControl = new FormControl('', [Validators.required]);
filteredPolicies: Observable<string[]>;
constructor() {

View File

@@ -45,9 +45,10 @@
<td mat-cell
*matCellDef="let policy">
<button mat-button
class="neutral"
(click)="edit(policy)"><mat-icon>edit</mat-icon>Edit</button>
<button mat-button
class="delete"
class="danger"
(click)="delete(policy)"><mat-icon>delete</mat-icon>Delete</button>
</td>
</ng-container>