|
57 | 57 | </ng-template> |
58 | 58 | <mat-nav-list id="groups-list"> |
59 | 59 | <mat-accordion multi> |
60 | | - @for (groups of groupedChannels | keyvalue: groupsComparator; track $index) { |
| 60 | + @for ( |
| 61 | + groups of groupedChannels | keyvalue: groupsComparator; |
| 62 | + track $index |
| 63 | + ) { |
61 | 64 | @if (groups.value.length > 0) { |
62 | 65 | <mat-expansion-panel> |
63 | 66 | <mat-expansion-panel-header> |
|
70 | 73 | </mat-expansion-panel-header> |
71 | 74 |
|
72 | 75 | <ng-template matExpansionPanelContent> |
73 | | - <ng-container |
74 | | - *ngFor=" |
75 | | - let channel of groups.value; |
76 | | - index as i; |
77 | | - trackBy: trackByFn |
78 | | - " |
79 | | - > |
| 76 | + @for ( |
| 77 | + channel of groups.value; |
| 78 | + track trackByFn($index, channel); |
| 79 | + let i = $index |
| 80 | + ) { |
80 | 81 | <app-channel-list-item |
81 | 82 | [name]=" |
82 | 83 | i + |
|
92 | 93 | selected?.id === channel.id |
93 | 94 | " |
94 | 95 | ></app-channel-list-item> |
95 | | - </ng-container> |
| 96 | + } |
96 | 97 | </ng-template> |
97 | 98 | </mat-expansion-panel> |
98 | 99 | } |
|
118 | 119 | id="favorites-list" |
119 | 120 | > |
120 | 121 | @if (favorites.length > 0) { |
121 | | - <app-channel-list-item |
122 | | - *ngFor=" |
123 | | - let channel of favorites; |
124 | | - index as i; |
125 | | - trackBy: trackByFn |
126 | | - " |
127 | | - [name]=" |
128 | | - i + |
129 | | - 1 + |
130 | | - '. ' + |
131 | | - (channel?.name || 'CHANNELS.UNNAMED_CHANNEL' |
132 | | - | translate) |
133 | | - " |
134 | | - [isDraggable]="true" |
135 | | - [logo]="channel?.tvg?.logo" |
136 | | - (clicked)="selectChannel(channel)" |
137 | | - [selected]="selected?.id === channel?.id" |
138 | | - [showFavoriteButton]="true" |
139 | | - (favoriteToggled)=" |
140 | | - toggleFavoriteChannel(channel, $event) |
141 | | - " |
142 | | - /> |
| 122 | + @for ( |
| 123 | + channel of favorites; |
| 124 | + track trackByFn($index, channel); |
| 125 | + let i = $index |
| 126 | + ) { |
| 127 | + <app-channel-list-item |
| 128 | + [name]=" |
| 129 | + i + |
| 130 | + 1 + |
| 131 | + '. ' + |
| 132 | + (channel?.name || |
| 133 | + 'CHANNELS.UNNAMED_CHANNEL' |
| 134 | + | translate) |
| 135 | + " |
| 136 | + [isDraggable]="true" |
| 137 | + [logo]="channel?.tvg?.logo" |
| 138 | + (clicked)="selectChannel(channel)" |
| 139 | + [selected]="selected?.id === channel?.id" |
| 140 | + [showFavoriteButton]="true" |
| 141 | + (favoriteToggled)=" |
| 142 | + toggleFavoriteChannel(channel, $event) |
| 143 | + " |
| 144 | + /> |
| 145 | + } |
143 | 146 | } @else { |
144 | 147 | <mat-list-item |
145 | 148 | ><strong>{{ |
|
0 commit comments