diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-31 09:35:44 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-31 09:35:44 +0200 |
commit | ae341afe9701e870569b28cf147caa260289413b (patch) | |
tree | 1fcd6977c6d2816d2367eb36a133472becbe867c | |
parent | 06f4956f5e6f850ac77e20e4bbda4c77858cbadf (diff) |
Delete property
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-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) } } |