refactor: hide epg settings in pwa version

This commit is contained in:
4gray committed 2022-01-03 16:09:04 +01:00
1 parent bf8664bec5
commit 239022216c
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -11,7 +11,7 @@
</mat-card-header>
<mat-card-content>
<mat-list>
<mat-list-item>
<mat-list-item *ngIf="isElectron">
<div matLine fxLayout="row">
<p fxFlex>{{ 'SETTINGS.EPG_URL_LABEL' | translate }}</p>
<p fxFlex fxLayoutAlign="start center">
@@ -138,6 +138,7 @@
</p>
</div>
</mat-list-item>
<mat-list-item *ngIf="!isElectron">EPG is available in electron-based version of IPTVnator. Check it&nbsp;<a href="https://github.com/4gray/iptvnator/releases">here</a></mat-list-item>
</mat-list>
</mat-card-content>
<mat-card-actions>
+3
View File
@@ -56,6 +56,9 @@ export class SettingsComponent implements OnInit {
(store) => store.epgAvailable
);
/** Flag that indicates whether the app runs in electron environment */
isElectron = this.electronService.isElectron;
/** All available visual themes */
themeEnum = Theme;