feat(group-update-form.component): update the component template to disable group name, comment, and aktiv components

This commit is contained in:
tekh 2025-08-07 11:41:34 +02:00
parent 8f31377b99
commit ae0301c5be
3 changed files with 5 additions and 4 deletions

View File

@ -7,20 +7,20 @@
</mat-form-field>
<mat-form-field class="w80p">
<mat-label>Gruppe</mat-label>
<input matInput [formControl]="name" />
<input matInput [formControl]="name" [readonly] = 'group.internal' />
</mat-form-field>
</div>
<!-- comment -->
<div class="dd-row input-row">
<mat-form-field>
<mat-label>Kommentar</mat-label>
<textarea matInput [formControl]="comment"></textarea>
<textarea matInput [formControl]="comment" [readonly] = 'group.internal'></textarea>
</mat-form-field>
</div>
<mat-divider></mat-divider>
<!-- active, internal, async -->
<div class="dd-row input-row">
<mat-slide-toggle [(ngModel)]="group.active">
<mat-slide-toggle [(ngModel)]="group.active" [disabled]='group.internal'>
Aktiv
</mat-slide-toggle>
<mat-slide-toggle [(ngModel)]="group.internal" disabled>

View File

@ -46,6 +46,7 @@ export class GroupUpdateFormComponent {
errorMessage = signal('');
constructor(private uService: GroupService, private rService: RefreshService) {
console.log(this.group);
}
update() {

View File

@ -23,7 +23,7 @@ export interface Group {
id?: number;
name?: string;
adSync?: boolean;
internal?: boolean;
internal: boolean;
active?: boolean;
comment?: string;
addedWho?: string;