summaryrefslogtreecommitdiffstats
path: root/src/components/Properties/PropertyText.vue
diff options
context:
space:
mode:
authorMatthias <git@myrho.net>2020-01-16 12:35:06 +0100
committerMatthias <git@myrho.net>2020-01-16 12:39:53 +0100
commit63c802888985a449f9f24eb1b451f5fa76a7cdf5 (patch)
tree99b448dcfc5d4293c8a582aaaddcb56f8c86b817 /src/components/Properties/PropertyText.vue
parent908607ae10783868577ac206308c1a6ad992adce (diff)
remove delete buttons and other actions if contact is not readable
Diffstat (limited to 'src/components/Properties/PropertyText.vue')
-rw-r--r--src/components/Properties/PropertyText.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Properties/PropertyText.vue b/src/components/Properties/PropertyText.vue
index 089c47da..c668a09f 100644
--- a/src/components/Properties/PropertyText.vue
+++ b/src/components/Properties/PropertyText.vue
@@ -77,11 +77,15 @@
<!-- external link -->
<a v-if="haveExtHandler"
:href="externalHandler"
- class="property__ext icon-external"
+ :class="{'property__ext': true, 'icon-external': true, 'no-move': isReadOnly}"
target="_blank" />
<!-- props actions -->
- <PropertyActions :actions="actions" :property-component="this" @delete="deleteProperty" />
+ <PropertyActions
+ v-if="!isReadOnly"
+ :actions="actions"
+ :property-component="this"
+ @delete="deleteProperty" />
</div>
</div>
</template>