summaryrefslogtreecommitdiffstats
path: root/src/mixins/PropertyMixin.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixins/PropertyMixin.js')
-rw-r--r--src/mixins/PropertyMixin.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mixins/PropertyMixin.js b/src/mixins/PropertyMixin.js
index 73b3f21c..cdb166f2 100644
--- a/src/mixins/PropertyMixin.js
+++ b/src/mixins/PropertyMixin.js
@@ -76,6 +76,17 @@ export default {
}
},
+ computed: {
+ actions() {
+ const del = {
+ text: t('contacts', 'Delete'),
+ icon: 'icon-delete',
+ action: this.deleteProperty
+ }
+ return [del, ...this.propModel.actions ? this.propModel.actions : []]
+ }
+ },
+
watch: {
/**
* Since we're updating a local data based on the value prop,