From 6e6272addad54bbe91b89de9b62a1fc7f57d83c5 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 3 Dec 2023 00:17:16 +0100 Subject: [PATCH 1/2] fix: fix issue with hidden LED groups Signed-off-by: Stefan Dej --- src/components/inputs/MiscellaneousLight.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/inputs/MiscellaneousLight.vue b/src/components/inputs/MiscellaneousLight.vue index 2ccd2dbde..de882bdad 100644 --- a/src/components/inputs/MiscellaneousLight.vue +++ b/src/components/inputs/MiscellaneousLight.vue @@ -19,9 +19,7 @@ - + import('@/components/inputs/MiscellaneousLight.vue'), }, }) export default class MiscellaneousLight extends Mixins(BaseMixin) { @@ -344,6 +343,8 @@ export default class MiscellaneousLight extends Mixins(BaseMixin) { } get groups() { + if (!this.root) return [] + return ( this.$store.getters['gui/miscellaneous/getEntryLightgroups']({ type: this.object.type, From 80c5ac1bcc460890c15acf12296be56ab8bb7fa1 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 3 Dec 2023 00:18:16 +0100 Subject: [PATCH 2/2] refactor: refactor some code parts Signed-off-by: Stefan Dej --- src/components/inputs/MiscellaneousLight.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/inputs/MiscellaneousLight.vue b/src/components/inputs/MiscellaneousLight.vue index de882bdad..57eee47b1 100644 --- a/src/components/inputs/MiscellaneousLight.vue +++ b/src/components/inputs/MiscellaneousLight.vue @@ -10,12 +10,12 @@ {{ mdiLightbulbOutline }} {{ name }} - + + @click="boolDialog = true" /> @@ -41,13 +41,13 @@ :style="presetStyle(preset)" v-bind="attrs" v-on="on" - @click="usePreset(preset)"> + @click="usePreset(preset)" /> {{ preset.name }} - +