@@ -57,11 +57,11 @@ export default {
computed: {
/**
- * Rfc props scoped
+ * Rfc props
* @returns {Object}
*/
properties() {
- return rfcProps.properties(this)
+ return rfcProps.properties
},
/**
diff --git a/src/components/ContactDetails/ContactDetailsAvatar.vue b/src/components/ContactDetails/ContactDetailsAvatar.vue
index 2f0f587aa..fbfea2505 100644
--- a/src/components/ContactDetails/ContactDetailsAvatar.vue
+++ b/src/components/ContactDetails/ContactDetailsAvatar.vue
@@ -82,7 +82,7 @@ import { generateRemoteUrl } from 'nextcloud-router'
const axios = () => import('axios')
export default {
- name: 'ContactAvatar',
+ name: 'ContactDetailsAvatar',
components: {
ActionLink,
diff --git a/src/components/ContactDetails/ContactDetailsProperty.vue b/src/components/ContactDetails/ContactDetailsProperty.vue
index 0a4aaf382..ac2452f52 100644
--- a/src/components/ContactDetails/ContactDetailsProperty.vue
+++ b/src/components/ContactDetails/ContactDetailsProperty.vue
@@ -22,11 +22,11 @@
-
@@ -93,10 +93,8 @@ export default {
},
// rfc properties list
- // passing this to properties to allow us to scope the properties object
- // this make possible defining actions there
properties() {
- return rfcProps.properties(this)
+ return rfcProps.properties
},
fieldOrder() {
return rfcProps.fieldOrder
diff --git a/src/components/Properties/PropertyActions.vue b/src/components/Properties/PropertyActions.vue
index 8a611d377..bbf908ed1 100644
--- a/src/components/Properties/PropertyActions.vue
+++ b/src/components/Properties/PropertyActions.vue
@@ -25,10 +25,8 @@
{{ t('contacts', 'Delete') }}
-
- {{ action.text }}
-
+
@@ -46,6 +44,10 @@ export default {
actions: {
type: Array,
default: () => []
+ },
+ propertyComponent: {
+ type: Object,
+ required: true
}
},
diff --git a/src/components/Properties/PropertyDateTime.vue b/src/components/Properties/PropertyDateTime.vue
index 71561c425..83b1a314b 100644
--- a/src/components/Properties/PropertyDateTime.vue
+++ b/src/components/Properties/PropertyDateTime.vue
@@ -43,14 +43,14 @@
{{ propModel.readableName }}