summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-12 14:10:41 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2020-10-12 14:10:41 +0200
commit3181da77bbfcdd37969083a2f44b2172efe6d477 (patch)
treecaa3b8c02ef321b5b608a7c8535298a018b291cb
parent604e1b1d2ea317c3e3b46fcee8aad8ba9fe82cec (diff)
Cleanup unneeded props and addnewProp visibility
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--src/components/ContactDetails.vue5
-rw-r--r--src/components/Properties/PropertyActions.vue7
-rw-r--r--src/components/Properties/PropertyDateTime.vue1
3 files changed, 5 insertions, 8 deletions
diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue
index 9c043204..ae1d3ffe 100644
--- a/src/components/ContactDetails.vue
+++ b/src/components/ContactDetails.vue
@@ -224,7 +224,10 @@
class="property-masonry property--groups property--last" />
<!-- new property select -->
- <AddNewProp v-masonry-tile :contact="contact" class="property-masonry" />
+ <AddNewProp v-if="!isReadOnly"
+ v-masonry-tile
+ :contact="contact"
+ class="property-masonry" />
<!-- Last modified-->
<PropertyRev v-if="contact.rev" :value="contact.rev" />
diff --git a/src/components/Properties/PropertyActions.vue b/src/components/Properties/PropertyActions.vue
index f015d65c..59b29f33 100644
--- a/src/components/Properties/PropertyActions.vue
+++ b/src/components/Properties/PropertyActions.vue
@@ -27,8 +27,7 @@
</ActionButton>
<Actions :is="action"
v-for="(action, index) in actions"
- :key="index"
- :component="propertyComponent" />
+ :key="index" />
</Actions>
</template>
@@ -49,10 +48,6 @@ export default {
type: Array,
default: () => [],
},
- propertyComponent: {
- type: Object,
- required: true,
- },
},
methods: {
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue
index c1079a3b..c825ab1e 100644
--- a/src/components/Properties/PropertyDateTime.vue
+++ b/src/components/Properties/PropertyDateTime.vue
@@ -74,7 +74,6 @@
<PropertyActions
v-if="!isReadOnly"
:actions="actions"
- :property-component="this"
@delete="deleteProperty" />
</div>
</div>