Skip to content

Commit

Permalink
fix: fix issue with hidden LED groups (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Dec 3, 2023
1 parent 07d4eb4 commit 465ddb5
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/components/inputs/MiscellaneousLight.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@
{{ mdiLightbulbOutline }}
</v-icon>
<span>{{ name }}</span>
<v-spacer></v-spacer>
<v-spacer />
<span
v-if="!root || groups.length === 0"
class="_currentState"
:style="currentStateStyle"
@click="boolDialog = true"></span>
@click="boolDialog = true" />
</v-subheader>
</v-col>
</v-row>
<template v-if="root && groups.length">
<miscellaneous-light v-for="group in groups" :key="group.id" :object="object" :group="group" />
</template>
<miscellaneous-light v-for="group in groups" :key="group.id" :object="object" :group="group" />
<v-dialog v-model="boolDialog" persistent :width="400">
<panel
:title="name"
Expand All @@ -43,13 +41,13 @@
:style="presetStyle(preset)"
v-bind="attrs"
v-on="on"
@click="usePreset(preset)"></div>
@click="usePreset(preset)" />
</template>
<span>{{ preset.name }}</span>
</v-tooltip>
</v-col>
</v-row>
<v-divider class="my-3"></v-divider>
<v-divider class="my-3" />
</template>
<v-row>
<v-col class="text-center">
Expand Down Expand Up @@ -157,6 +155,7 @@ interface ColorData {
@Component({
components: {
ColorPicker,
MiscellaneousLight: () => import('@/components/inputs/MiscellaneousLight.vue'),
},
})
export default class MiscellaneousLight extends Mixins(BaseMixin) {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 465ddb5

Please sign in to comment.