Adds metadata section description to help popovers. #184.
This commit is contained in:
parent
365921164f
commit
9a8c550aae
|
@ -322,6 +322,10 @@
|
||||||
class="has-text-secondary tainacan-icon tainacan-icon-1-25em"/>
|
class="has-text-secondary tainacan-icon tainacan-icon-1-25em"/>
|
||||||
</span>
|
</span>
|
||||||
<label>{{ metadataSection.name }}</label>
|
<label>{{ metadataSection.name }}</label>
|
||||||
|
<help-button
|
||||||
|
v-if="metadataSection.description"
|
||||||
|
:title="metadataSection.name"
|
||||||
|
:message="metadataSection.description" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<transition name="filter-item">
|
<transition name="filter-item">
|
||||||
|
|
|
@ -395,12 +395,23 @@
|
||||||
class="has-text-secondary tainacan-icon tainacan-icon-1-25em"/>
|
class="has-text-secondary tainacan-icon tainacan-icon-1-25em"/>
|
||||||
</span>
|
</span>
|
||||||
<label>{{ metadataSection.name }}</label>
|
<label>{{ metadataSection.name }}</label>
|
||||||
|
<help-button
|
||||||
|
v-if="!hideHelpButtons &&
|
||||||
|
!helpInfoBellowLabel &&
|
||||||
|
metadataSection.description"
|
||||||
|
:title="metadataSection.name"
|
||||||
|
:message="metadataSection.description" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<transition name="filter-item">
|
<transition name="filter-item">
|
||||||
<div
|
<div
|
||||||
class="metadata-section-metadata-list"
|
class="metadata-section-metadata-list"
|
||||||
v-show="metadataSectionCollapses[sectionIndex]">
|
v-show="metadataSectionCollapses[sectionIndex]">
|
||||||
|
<p
|
||||||
|
class="metadatum-description-help-info"
|
||||||
|
v-if="metadataSection.description && (!hideHelpButtons && helpInfoBellowLabel)">
|
||||||
|
{{ metadataSection.description }}
|
||||||
|
</p>
|
||||||
<template v-for="(itemMetadatum, index) of metadatumList.filter(anItemMetadatum => anItemMetadatum.metadatum.metadata_section_id == metadataSection.id)">
|
<template v-for="(itemMetadatum, index) of metadatumList.filter(anItemMetadatum => anItemMetadatum.metadatum.metadata_section_id == metadataSection.id)">
|
||||||
<tainacan-form-item
|
<tainacan-form-item
|
||||||
:key="index"
|
:key="index"
|
||||||
|
|
Loading…
Reference in New Issue