From 1813b45fb310f72937aa39f237f87aab931a9892 Mon Sep 17 00:00:00 2001 From: Jamie Date: Thu, 9 Nov 2017 16:15:46 +0000 Subject: [PATCH] Finished adding preset themes --- .../customization/customization.component.html | 10 ++++++---- .../settings/customization/customization.component.ts | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Ombi/ClientApp/app/settings/customization/customization.component.html b/src/Ombi/ClientApp/app/settings/customization/customization.component.html index 1bbdd50e0..c2bf4b244 100644 --- a/src/Ombi/ClientApp/app/settings/customization/customization.component.html +++ b/src/Ombi/ClientApp/app/settings/customization/customization.component.html @@ -53,20 +53,22 @@
- + Preset themes are powered by + layer#Cake. + +
diff --git a/src/Ombi/ClientApp/app/settings/customization/customization.component.ts b/src/Ombi/ClientApp/app/settings/customization/customization.component.ts index b827d7469..5e90e3ca3 100644 --- a/src/Ombi/ClientApp/app/settings/customization/customization.component.ts +++ b/src/Ombi/ClientApp/app/settings/customization/customization.component.ts @@ -30,7 +30,6 @@ export class CustomizationComponent implements OnInit { this.themes.splice(index, 1); } } - if(x.hasPresetTheme) { this.themes.unshift({displayName: x.presetThemeDisplayName, fullName: x.presetThemeName, url: "", version: x.presetThemeVersion}); this.themes.unshift({displayName: "None", fullName: "None", url: "", version: ""}); @@ -69,7 +68,7 @@ export class CustomizationComponent implements OnInit { } this.settings.presetThemeName = selectedThemeFullName; - this.settingsService.getThemeContent(selectedTheme[0].url).subscribe(x => { + this.settingsService.getThemeContent(selectedTheme.url).subscribe(x => { this.settings.presetThemeContent = x; }); }