forked from platypush/platypush
[Entities UI] Fixed collapse toggling logic.
This commit is contained in:
parent
26b912fae4
commit
137855b4fc
1 changed files with 3 additions and 3 deletions
|
@ -47,14 +47,14 @@
|
||||||
<DropdownItem text="Refresh" icon-class="fa fa-sync-alt" @click="refresh(group)" />
|
<DropdownItem text="Refresh" icon-class="fa fa-sync-alt" @click="refresh(group)" />
|
||||||
<DropdownItem text="Hide" icon-class="fa fa-eye-slash" @click="hideGroup(group)" />
|
<DropdownItem text="Hide" icon-class="fa fa-eye-slash" @click="hideGroup(group)" />
|
||||||
<DropdownItem text="Collapse" icon-class="fa fa-caret-up"
|
<DropdownItem text="Collapse" icon-class="fa fa-caret-up"
|
||||||
@click="collapsedGroups[group] = true" v-if="!collapsedGroups[group]" />
|
@click="collapsedGroups[group.name] = true" v-if="!collapsedGroups[group.name]" />
|
||||||
<DropdownItem text="Expand" icon-class="fa fa-caret-down"
|
<DropdownItem text="Expand" icon-class="fa fa-caret-down"
|
||||||
@click="collapsedGroups[group] = false" v-else />
|
@click="collapsedGroups[group.name] = false" v-else />
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="body" v-if="!collapsedGroups[group]">
|
<div class="body" v-if="!collapsedGroups[group.name]">
|
||||||
<div class="entity-frame"
|
<div class="entity-frame"
|
||||||
v-for="entity in Object.values(group.entities).sort((a, b) => a.name.localeCompare(b.name))"
|
v-for="entity in Object.values(group.entities).sort((a, b) => a.name.localeCompare(b.name))"
|
||||||
:key="entity.id">
|
:key="entity.id">
|
||||||
|
|
Loading…
Reference in a new issue