[Entities UI] Fixed collapse toggling logic.

This commit is contained in:
Fabio Manganiello 2023-10-18 02:59:21 +02:00
parent 26b912fae4
commit 137855b4fc
Signed by untrusted user: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -47,14 +47,14 @@
<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="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"
@click="collapsedGroups[group] = false" v-else />
@click="collapsedGroups[group.name] = false" v-else />
</Dropdown>
</span>
</div>
<div class="body" v-if="!collapsedGroups[group]">
<div class="body" v-if="!collapsedGroups[group.name]">
<div class="entity-frame"
v-for="entity in Object.values(group.entities).sort((a, b) => a.name.localeCompare(b.name))"
:key="entity.id">