Adjustments to child metadatum on filters list. #17.

This commit is contained in:
mateuswetah 2020-03-26 14:37:55 -03:00
parent 826bc97d82
commit b5dd4415f0
2 changed files with 9 additions and 13 deletions

View File

@ -168,18 +168,11 @@
:group="{ name:'filters', pull: !isSelectingFilterType, put: false, revertClone: true }"
drag-class="sortable-drag">
<template v-for="(metadatum, index) in availableMetadata">
<span
:key="index"
v-if="metadatum.parent_name && metadatum.first_child"
class="not-sortable-item compound-metadatum-label">
{{ metadatum.parent_name }}
</span>
<div
class="available-metadatum-item"
:class="{
'inherited-metadatum': metadatum.collection_id != collectionId || isRepositoryLevel,
'disabled-metadatum': isSelectingFilterType,
'child-metadatum': metadatum.parent_name
'disabled-metadatum': isSelectingFilterType
}"
v-if="metadatum.enabled"
:key="index"
@ -209,11 +202,13 @@
}"
class="tainacan-icon" />
</span>
<span class="metadatum-name">{{ metadatum.name }}
<span class="metadatum-name">
{{ metadatum.name }}
<span
v-if="metadatum.parent_name"
class="label-details">
<em>{{ '(' + metadatum.parent_name + ')' }}</em>
class="label-details"
style="font-size: 0.875em;">
<em>{{ '(' + $i18n.get('info_child_of') + ' ' + metadatum.parent_name + ')' }}</em>
</span>
</span>
</div>

View File

@ -710,6 +710,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'info_not_allowed_change_order_metadata' => __( 'Can not change metadata order now.', 'tainacan' ),
'info_not_allowed_change_order_filters' => __( 'Can not change filters order now.', 'tainacan' ),
'info_no_value_compound_metadata' => __( 'No value has been added to this compound metadata.', 'tainacan' ),
'info_child_of' => __( 'child of', 'tainacan' ),
// Datepicker months
'datepicker_month_january' => __( 'January', 'tainacan' ),