Skip to content

Commit

Permalink
chore: changed checked property to [checked] in filter-menu
Browse files Browse the repository at this point in the history
  • Loading branch information
urz9999 committed May 2, 2022
1 parent 5440b44 commit 675167c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ng-container *ngIf="!categories || categories.length === 0">
<ng-container *ngFor="let element of data">
<ng-container *ngIf="element.show">
<mat-checkbox (click)="$event.stopPropagation();" (change)="element.value = $event.checked; updateValue($event, data, form);" checked="{{element.value ? 'checked' : ''}}"></mat-checkbox><span>{{element.name}}</span>
<mat-checkbox (click)="$event.stopPropagation();" (change)="element.value = $event.checked; updateValue($event, data, form);" [checked]="element.value"></mat-checkbox><span>{{element.name}}</span>
<br>
</ng-container>
</ng-container>
Expand All @@ -19,7 +19,7 @@
<small class="category">{{category}}</small><br>
<ng-container *ngFor="let element of data">
<ng-container *ngIf="element.show && element.category === category">
<mat-checkbox (click)="$event.stopPropagation();" (change)="element.value = $event.checked; updateValue($event, data, form);" checked="{{element.value ? 'checked' : ''}}"></mat-checkbox><span>{{element.name}}</span>
<mat-checkbox (click)="$event.stopPropagation();" (change)="element.value = $event.checked; updateValue($event, data, form);" [checked]="element.value"></mat-checkbox><span>{{element.name}}</span>
<br>
</ng-container>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class FilterMenuComponent implements OnInit {

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,max-len
updateValue(event: any, data: { id?: string; category?: string; name: string; value: boolean; show?: boolean }[], form: FormGroup) {
console.log(data);
data = data.map((o) => ({ id: o.id, name: o.name, value: o.value, category: o.category }));
form.get(this.control).setValue(data);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,13 @@ export class IntegrationBarComponent implements OnInit, OnDestroy {
this.awsSsoOidcService.interrupt();
this.loadingInBrowser = false;
this.loadingInApp = false;
this.modalRef.hide();
this.modalRef?.hide();
}

catchClosingBrowserWindow(): void {
this.loadingInBrowser = false;
this.loadingInApp = false;
this.modalRef.hide();
this.modalRef?.hide();
}

gotoForm(modifying: number, awsSsoIntegration: AwsSsoIntegration): void {
Expand Down

0 comments on commit 675167c

Please sign in to comment.