From b2fda963e9efc99e6734732b197f112c79a654b4 Mon Sep 17 00:00:00 2001 From: Paul Harrison Date: Thu, 12 May 2022 16:44:48 +0100 Subject: [PATCH] webapp: Locale settings - only enable the save but if something changed --- .../app/config/settings/general/locale/locale.component.html | 4 +++- .../app/config/settings/general/locale/locale.component.ts | 3 +-- mythtv/html/backend/src/app/services/setup.service.ts | 4 ---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.html b/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.html index 8f0810843c3..b972ae0afd4 100644 --- a/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.html +++ b/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.html @@ -40,7 +40,9 @@
- + +
diff --git a/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.ts b/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.ts index f6fd0f9bf40..2cd5a25eeea 100644 --- a/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.ts +++ b/mythtv/html/backend/src/app/config/settings/general/locale/locale.component.ts @@ -17,7 +17,7 @@ export class LocaleComponent implements OnInit { // from frequencies.cpp line 2215 m_FreqTables: string[]; - // from + // from m_TVFormats: string[]; constructor(private setupService: SetupService) { @@ -80,7 +80,6 @@ export class LocaleComponent implements OnInit { } saveForm() { - console.log("save form clicked"); this.setupService.saveLocaleSettings(); } } diff --git a/mythtv/html/backend/src/app/services/setup.service.ts b/mythtv/html/backend/src/app/services/setup.service.ts index ee9f9700b72..39f73ebbedd 100644 --- a/mythtv/html/backend/src/app/services/setup.service.ts +++ b/mythtv/html/backend/src/app/services/setup.service.ts @@ -78,12 +78,8 @@ export class SetupService { } saveLocaleSettings() { - console.log("TVFormat: ", this.m_setupData.General.Locale.TVFormat,"VbiFormat: ", this.m_setupData.General.Locale.VbiFormat, "FreqTable: ", this.m_setupData.General.Locale.FreqTable); this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "TVFormat", Value: this.m_setupData.General.Locale.TVFormat }).subscribe(result => { console.log("TVFormat: ", result.bool); }); this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "VbiFormat", Value: this.m_setupData.General.Locale.VbiFormat }).subscribe(result => { console.log("VBIFormat: ", result.bool); }); this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "FreqTable", Value: this.m_setupData.General.Locale.FreqTable }).subscribe(result => { console.log("FreqTable: ", result.bool); }); - //this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "TVFormat", Value: this.m_setupData.General.Locale.TVFormat }); - //this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "VbiFormat", Value: this.m_setupData.General.Locale.VbiFormat }); - //this.mythService.PutSetting({ HostName: "_GLOBAL_", Key: "FreqTable", Value: this.m_setupData.General.Locale.FreqTable }); } }