summaryrefslogtreecommitdiffstats
path: root/src/components/Properties/PropertyText.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Properties/PropertyText.vue')
-rw-r--r--src/components/Properties/PropertyText.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue
index 3951d3ac..c7a85958 100644
--- a/src/components/Properties/PropertyText.vue
+++ b/src/components/Properties/PropertyText.vue
@@ -22,7 +22,7 @@
-->
<template>
- <div v-if="propModel" class="property">
+ <div v-if="propModel && showProperty" class="property">
<!-- title if first element -->
<PropertyTitle v-if="isFirstProperty && propModel.icon"
:property="property"
@@ -139,6 +139,9 @@ export default {
},
computed: {
+ showProperty() {
+ return (this.isReadOnly && this.localValue) || !this.isReadOnly
+ },
inputmode() {
if (this.propName === 'tel') {
return 'tel'