feat(group-update-form.component): update the component template to disable group name, comment, and aktiv components
This commit is contained in:
parent
8f31377b99
commit
ae0301c5be
@ -7,20 +7,20 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field class="w80p">
|
<mat-form-field class="w80p">
|
||||||
<mat-label>Gruppe</mat-label>
|
<mat-label>Gruppe</mat-label>
|
||||||
<input matInput [formControl]="name" />
|
<input matInput [formControl]="name" [readonly] = 'group.internal' />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<!-- comment -->
|
<!-- comment -->
|
||||||
<div class="dd-row input-row">
|
<div class="dd-row input-row">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>Kommentar</mat-label>
|
<mat-label>Kommentar</mat-label>
|
||||||
<textarea matInput [formControl]="comment"></textarea>
|
<textarea matInput [formControl]="comment" [readonly] = 'group.internal'></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<!-- active, internal, async -->
|
<!-- active, internal, async -->
|
||||||
<div class="dd-row input-row">
|
<div class="dd-row input-row">
|
||||||
<mat-slide-toggle [(ngModel)]="group.active">
|
<mat-slide-toggle [(ngModel)]="group.active" [disabled]='group.internal'>
|
||||||
Aktiv
|
Aktiv
|
||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
<mat-slide-toggle [(ngModel)]="group.internal" disabled>
|
<mat-slide-toggle [(ngModel)]="group.internal" disabled>
|
||||||
|
|||||||
@ -46,6 +46,7 @@ export class GroupUpdateFormComponent {
|
|||||||
errorMessage = signal('');
|
errorMessage = signal('');
|
||||||
|
|
||||||
constructor(private uService: GroupService, private rService: RefreshService) {
|
constructor(private uService: GroupService, private rService: RefreshService) {
|
||||||
|
console.log(this.group);
|
||||||
}
|
}
|
||||||
|
|
||||||
update() {
|
update() {
|
||||||
|
|||||||
@ -23,7 +23,7 @@ export interface Group {
|
|||||||
id?: number;
|
id?: number;
|
||||||
name?: string;
|
name?: string;
|
||||||
adSync?: boolean;
|
adSync?: boolean;
|
||||||
internal?: boolean;
|
internal: boolean;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
comment?: string;
|
comment?: string;
|
||||||
addedWho?: string;
|
addedWho?: string;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user