Adjustments to child metadatum on filters list. #17.
This commit is contained in:
parent
826bc97d82
commit
b5dd4415f0
|
@ -87,8 +87,8 @@
|
||||||
{{ filter.name }}
|
{{ filter.name }}
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
v-if="filter.filter_type_object != undefined"
|
v-if="filter.filter_type_object != undefined"
|
||||||
class="label-details">
|
class="label-details">
|
||||||
({{ filter.filter_type_object.name }})
|
({{ filter.filter_type_object.name }})
|
||||||
<span
|
<span
|
||||||
class="not-saved"
|
class="not-saved"
|
||||||
|
@ -168,18 +168,11 @@
|
||||||
:group="{ name:'filters', pull: !isSelectingFilterType, put: false, revertClone: true }"
|
:group="{ name:'filters', pull: !isSelectingFilterType, put: false, revertClone: true }"
|
||||||
drag-class="sortable-drag">
|
drag-class="sortable-drag">
|
||||||
<template v-for="(metadatum, index) in availableMetadata">
|
<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
|
<div
|
||||||
class="available-metadatum-item"
|
class="available-metadatum-item"
|
||||||
:class="{
|
:class="{
|
||||||
'inherited-metadatum': metadatum.collection_id != collectionId || isRepositoryLevel,
|
'inherited-metadatum': metadatum.collection_id != collectionId || isRepositoryLevel,
|
||||||
'disabled-metadatum': isSelectingFilterType,
|
'disabled-metadatum': isSelectingFilterType
|
||||||
'child-metadatum': metadatum.parent_name
|
|
||||||
}"
|
}"
|
||||||
v-if="metadatum.enabled"
|
v-if="metadatum.enabled"
|
||||||
:key="index"
|
:key="index"
|
||||||
|
@ -209,11 +202,13 @@
|
||||||
}"
|
}"
|
||||||
class="tainacan-icon" />
|
class="tainacan-icon" />
|
||||||
</span>
|
</span>
|
||||||
<span class="metadatum-name">{{ metadatum.name }}
|
<span class="metadatum-name">
|
||||||
|
{{ metadatum.name }}
|
||||||
<span
|
<span
|
||||||
v-if="metadatum.parent_name"
|
v-if="metadatum.parent_name"
|
||||||
class="label-details">
|
class="label-details"
|
||||||
<em>{{ '(' + metadatum.parent_name + ')' }}</em>
|
style="font-size: 0.875em;">
|
||||||
|
<em>{{ '(' + $i18n.get('info_child_of') + ' ' + metadatum.parent_name + ')' }}</em>
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -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_metadata' => __( 'Can not change metadata order now.', 'tainacan' ),
|
||||||
'info_not_allowed_change_order_filters' => __( 'Can not change filters 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_no_value_compound_metadata' => __( 'No value has been added to this compound metadata.', 'tainacan' ),
|
||||||
|
'info_child_of' => __( 'child of', 'tainacan' ),
|
||||||
|
|
||||||
// Datepicker months
|
// Datepicker months
|
||||||
'datepicker_month_january' => __( 'January', 'tainacan' ),
|
'datepicker_month_january' => __( 'January', 'tainacan' ),
|
||||||
|
|
Loading…
Reference in New Issue