diff options
-rw-r--r-- | css/Properties/Properties.scss | 4 | ||||
-rw-r--r-- | src/components/ContactDetails/ContactDetailsProperty.vue | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/css/Properties/Properties.scss b/css/Properties/Properties.scss index d7f76afa..bf444758 100644 --- a/css/Properties/Properties.scss +++ b/css/Properties/Properties.scss @@ -32,8 +32,8 @@ margin-bottom: $grid-height-unit; } // no delete icon on addressbook selector - &--addressbooks .icon-delete { - display: none; + &--addressbooks &__delete { + display: none !important; } &__delete { diff --git a/src/components/ContactDetails/ContactDetailsProperty.vue b/src/components/ContactDetails/ContactDetailsProperty.vue index 4260f447..fa547d40 100644 --- a/src/components/ContactDetails/ContactDetailsProperty.vue +++ b/src/components/ContactDetails/ContactDetailsProperty.vue @@ -217,8 +217,11 @@ export default { }, methods: { + /** + * Delete this property + */ deleteProp() { - alert('deleted') + this.contact.vCard.removeProperty(this.property) } } |