From 854bedc968d099774df9f8e1ec3a11c4d023c135 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Wed, 5 Feb 2020 13:48:41 +0100 Subject: [PATCH] fixing video settings saving --- .../ui/settings/_abstract/abstract.settings.component.ts | 6 ++++-- .../app/ui/settings/video/video.settings.component.html | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/app/ui/settings/_abstract/abstract.settings.component.ts b/src/frontend/app/ui/settings/_abstract/abstract.settings.component.ts index 2ecfff05..b41f04ec 100644 --- a/src/frontend/app/ui/settings/_abstract/abstract.settings.component.ts +++ b/src/frontend/app/ui/settings/_abstract/abstract.settings.component.ts @@ -198,13 +198,15 @@ export abstract class SettingsComponent { for (const key of Object.keys(obj)) { to[key] = {}; - if (obj[key].isConfigType) { - return add(obj[key], to[key]); + if (obj[key].isConfigType || (typeof obj[key] === 'object' && typeof obj[key].value === 'undefined')) { + add(obj[key], to[key]); + continue; } to[key] = obj[key].value; } }; add(this.states, ret); + return ret; } diff --git a/src/frontend/app/ui/settings/video/video.settings.component.html b/src/frontend/app/ui/settings/video/video.settings.component.html index 17efed27..1953fb5f 100644 --- a/src/frontend/app/ui/settings/video/video.settings.component.html +++ b/src/frontend/app/ui/settings/video/video.settings.component.html @@ -2,7 +2,6 @@
{{Name}} - *