MOBILE-4081 site-preferences: Split change ngClass usage to avoid undefined class error

main
Alfonso Salces 2022-10-13 15:37:01 +02:00
parent e6308c2869
commit f60ee69b82
1 changed files with 3 additions and 3 deletions

View File

@ -17,9 +17,9 @@
</ion-refresher> </ion-refresher>
<core-loading [hideUntil]="handlers.loaded"> <core-loading [hideUntil]="handlers.loaded">
<ion-list> <ion-list>
<ion-item *ngFor="let handler of handlerItems" [ngClass]="['core-settings-handler', handler.class]" <ion-item *ngFor="let handler of handlerItems" class="core-settings-handler" [ngClass]="handler.class"
[attr.aria-label]="handler.title | translate" (click)="handlers.select(handler)" [button]="!handler.toggle" [attr.aria-label]="handler.title | translate" (click)="!handler.toggle && handlers.select(handler)"
[detail]="!handler.toggle" [attr.aria-current]="handlers.getItemAriaCurrent(handler)"> [button]="!handler.toggle" [detail]="!handler.toggle" [attr.aria-current]="handlers.getItemAriaCurrent(handler)">
<ion-icon [name]="handler.icon" slot="start" *ngIf="handler.icon" aria-hidden="true"> <ion-icon [name]="handler.icon" slot="start" *ngIf="handler.icon" aria-hidden="true">
</ion-icon> </ion-icon>
<ion-label> <ion-label>