refactor: reduce subscriptions

This commit is contained in:
4gray committed 2023-02-24 13:37:50 +01:00
1 parent a6d77db26b
commit 7d480436a1
1 file changed
+16 -16
@@ -22,20 +22,20 @@
</button>
{{ activeChannel?.name }}
<div class="spacer"></div>
<button
*ngIf="isEpgAvailable$ | async"
mat-icon-button
(click)="multiEpgClicked.emit()"
[matTooltip]="'TOP_MENU.OPEN_MULTI_EPG' | translate"
>
<mat-icon>view_list</mat-icon>
</button>
<button
*ngIf="isEpgAvailable$ | async"
mat-button
(click)="toggleRightDrawerClicked.emit()"
[matTooltip]="'TOP_MENU.OPEN_EPG_LIST' | translate"
>
EPG
</button>
<ng-container *ngIf="isEpgAvailable$ | async">
<button
mat-icon-button
(click)="multiEpgClicked.emit()"
[matTooltip]="'TOP_MENU.OPEN_MULTI_EPG' | translate"
>
<mat-icon>view_list</mat-icon>
</button>
<button
mat-button
(click)="toggleRightDrawerClicked.emit()"
[matTooltip]="'TOP_MENU.OPEN_EPG_LIST' | translate"
>
EPG
</button>
</ng-container>
</mat-toolbar>