Do not displays collapse all for compound when collpases are hidden.
This commit is contained in:
parent
726311ba8a
commit
8d29dd023c
|
@ -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') }}
|
||||
|
|
|
@ -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 : '');
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue