Makes metadata_type_options value printing dynamic.

This commit is contained in:
Mateus Machado Luna 2019-09-17 14:20:13 -03:00
parent a97dc28d44
commit 5ad690f695
1 changed files with 12 additions and 9 deletions

View File

@ -95,11 +95,12 @@
<div
v-else-if="attributeName == 'metadata_type_options'"
class="content">
<p class="tainacan-p-break">
{{ attributeValue ?
`Taxonomy ID: ${attributeValue.taxonomy_id};
Input type: ${attributeValue.input_type};
Allow new terms: ${attributeValue.allow_new_terms}` : infoEmpty }}
<p
:key="innerIndex"
v-for="(innerValue, innerName, innerIndex) of attributeValue"
class="tainacan-p-break">
<strong>{{ innerName + ': ' }}</strong>{{ innerValue ? innerValue : infoEmpty }}
<br>
</p>
</div>
@ -199,10 +200,12 @@
<div
v-else-if="attributeName == 'metadata_type_options'"
class="content">
<p class="tainacan-p-break">
{{ `Taxonomy ID: ${attributeValue.taxonomy_id};
Input type: ${attributeValue.input_type};
Allow new terms: ${attributeValue.allow_new_terms}` }}
<p
:key="innerIndex"
v-for="(innerValue, innerName, innerIndex) of attributeValue"
class="tainacan-p-break">
<strong>{{ innerName + ': ' }}</strong>{{ innerValue ? innerValue : infoEmpty }}
<br>
</p>
</div>