summaryrefslogtreecommitdiffstats
path: root/src/components/Properties
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-04 10:47:01 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-02-04 10:49:25 +0100
commit16634f8f76d037af7773381b83f8347a3c69dd12 (patch)
tree6996c7722edca4759806ada6c3a4023cce2486a9 /src/components/Properties
parent11e3a3bd87de2c3ddf757943e898e78a8df7d1a0 (diff)
Do not duplicate the title if we can directly show the first value og a multiple value property
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/components/Properties')
-rw-r--r--src/components/Properties/PropertyMultipleText.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/Properties/PropertyMultipleText.vue b/src/components/Properties/PropertyMultipleText.vue
index 1408e3ff..68f7be9d 100644
--- a/src/components/Properties/PropertyMultipleText.vue
+++ b/src/components/Properties/PropertyMultipleText.vue
@@ -38,9 +38,10 @@
{{ selectType.name }}
</div>
- <!-- no options, empty space -->
- <div v-else class="property__label">
- {{ propModel.readableName }}
+ <!-- no options, and showing the first input of an unstructured value?
+ then let's put an empty space (or the name again if no title is present) -->
+ <div v-else-if="!property.isStructuredValue" class="property__label">
+ {{ isFirstProperty ? '' : propModel.readableName }}
</div>
<!-- show the first input if not -->