Do not displays collapse all for compound when collpases are hidden.

This commit is contained in:
mateuswetah 2021-11-22 16:00:44 -03:00
parent 726311ba8a
commit 8d29dd023c
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="child-metadata-inputs">
<a
v-if="childItemMetadataGroups.length > 0"
v-if="!hideCollapses && childItemMetadataGroups.length > 0"
class="collapse-all"
@click="toggleCollapseAllChildren()">
{{ collapseAllChildren ? $i18n.get('label_collapse_all') : $i18n.get('label_expand_all') }}

View File

@ -162,6 +162,8 @@
(this.hideCollapses ? ' has-collapses-hidden' : '') +
(this.isHighlightedMetadatum ? ' hightlighted-metadatum' : '') +
(this.metadatumComponent ? ' tainacan-metadatum-component--' + this.metadatumComponent : '') +
(this.itemMetadatum && this.itemMetadatum.metadatum && this.itemMetadatum.metadatum.placeholder ? ' has-placeholder' : '') +
(this.itemMetadatum && this.itemMetadatum.metadatum && this.itemMetadatum.metadatum.description ? ' has-description' : '') +
(this.itemMetadatum && this.itemMetadatum.metadatum && this.itemMetadatum.metadatum.id ? ' tainacan-metadatum-id--' + this.itemMetadatum.metadatum.id : '');
}
},