refactor: get rid of flex-layout dependency

This commit is contained in:
4gray committed 2023-01-23 00:34:25 +01:00
1 parent 6ef7f849bb
commit 2f6cbe8dd2
6 files changed
+86 -48

No files matched your search

+8 -2
View File
@@ -134,6 +134,7 @@ export class SettingsComponent implements OnInit {
if (!Array.isArray(epgUrls)) {
epgUrls = [epgUrls];
}
epgUrls = epgUrls.filter((url) => url !== '');
for (const url of epgUrls) {
this.epgUrl.push(
@@ -209,8 +210,13 @@ export class SettingsComponent implements OnInit {
this.settingsForm.markAsPristine();
// check whether the epg url was changed or not
if (this.isElectron) {
if (this.settingsForm.value.epgUrl) {
this.epgService.fetchEpg(this.settingsForm.value.epgUrl);
let epgUrls = this.settingsForm.value.epgUrl;
if (epgUrls) {
if (!Array.isArray(epgUrls)) {
epgUrls = [epgUrls];
}
epgUrls = epgUrls.filter((url) => url !== '');
this.epgService.fetchEpg(epgUrls);
}
}
this.translate.use(this.settingsForm.value.language);