From 63c802888985a449f9f24eb1b451f5fa76a7cdf5 Mon Sep 17 00:00:00 2001
From: Matthias <git@myrho.net>
Date: Thu, 16 Jan 2020 12:35:06 +0100
Subject: remove delete buttons and other actions if contact is not readable

---
 src/components/Properties/PropertyText.vue | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

(limited to 'src/components/Properties/PropertyText.vue')

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>
-- 
cgit v1.2.3

