diff --git a/client/src/modules/thememanager.js b/client/src/modules/thememanager.js index 4dd57f82..8cee8f98 100644 --- a/client/src/modules/thememanager.js +++ b/client/src/modules/thememanager.js @@ -191,7 +191,7 @@ export default class ThemeManager extends ContentManager { } if (type === 'dropdown' || type === 'radio') { - return `$${name}: ${setting.options.find(opt => opt.value === value).text};`; + return `$${name}: ${setting.options.find(opt => opt.id === value).value};`; } if (typeof value === 'boolean' || typeof value === 'number') { diff --git a/client/src/ui/components/bd/pluginsetting/Dropdown.vue b/client/src/ui/components/bd/pluginsetting/Dropdown.vue index e00c03fd..4ece185c 100644 --- a/client/src/ui/components/bd/pluginsetting/Dropdown.vue +++ b/client/src/ui/components/bd/pluginsetting/Dropdown.vue @@ -20,7 +20,7 @@
-
{{option.text}}
+
{{option.text}}
@@ -37,13 +37,13 @@ }, methods: { getOptionText(value) { - let matching = this.setting.options.filter(opt => opt.value == value); + let matching = this.setting.options.filter(opt => opt.id === value); if (matching.length == 0) return ""; else return matching[0].text; }, selectOption(option) { this.active = false; - this.change(this.setting.id, option.value); + this.change(this.setting.id, option.id); } }, mounted() { diff --git a/client/src/ui/components/bd/pluginsetting/Radio.vue b/client/src/ui/components/bd/pluginsetting/Radio.vue index f7914b5a..eac6afb8 100644 --- a/client/src/ui/components/bd/pluginsetting/Radio.vue +++ b/client/src/ui/components/bd/pluginsetting/Radio.vue @@ -16,7 +16,7 @@
-