mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix: update environment checks from Electron to Tauri in PlaylistInfoComponent
This commit is contained in:
1 parent
ce91f92a9c
commit
c9a917ef9d
2 files changed
+4
-4
No files matched your search
@@ -66,7 +66,7 @@
|
||||
}}</mat-label>
|
||||
<input matInput formControlName="count" />
|
||||
</mat-form-field>
|
||||
<mat-form-field class="full-width mb-10" *ngIf="isElectron">
|
||||
<mat-form-field class="full-width mb-10" *ngIf="isTauri">
|
||||
<mat-label>{{
|
||||
'HOME.PLAYLISTS.INFO_DIALOG.USER_AGENT' | translate
|
||||
}}</mat-label>
|
||||
@@ -84,7 +84,7 @@
|
||||
{{ 'HOME.PLAYLISTS.INFO_DIALOG.UPDATE_FAILED' | translate }}
|
||||
</mat-hint>
|
||||
</mat-form-field>
|
||||
<ng-container *ngIf="isElectron && (playlist.url || playlist.filePath)">
|
||||
<ng-container *ngIf="isTauri && (playlist.url || playlist.filePath)">
|
||||
<mat-checkbox class="full-width" formControlName="autoRefresh">
|
||||
{{ 'HOME.PLAYLISTS.INFO_DIALOG.AUTO_UPDATE' | translate }}
|
||||
</mat-checkbox>
|
||||
|
||||
@@ -15,6 +15,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { Store } from '@ngrx/store';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { isTauri } from '@tauri-apps/api/core';
|
||||
import { firstValueFrom } from 'rxjs';
|
||||
import { Playlist } from '../../../../../shared/playlist.interface';
|
||||
import { DataService } from '../../../services/data.service';
|
||||
@@ -46,8 +47,7 @@ import * as PlaylistActions from '../../../state/actions';
|
||||
standalone: true,
|
||||
})
|
||||
export class PlaylistInfoComponent {
|
||||
/** Flag that returns true if application runs in electron-based environment */
|
||||
isElectron = this.dataService.isElectron;
|
||||
isTauri = isTauri();
|
||||
|
||||
/** Playlist object */
|
||||
playlist: Playlist;
|
||||
|
||||
Reference in new issue
Block a user