From ae341afe9701e870569b28cf147caa260289413b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 31 Aug 2018 09:35:44 +0200 Subject: Delete property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/ContactDetails/ContactDetailsProperty.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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) } } -- cgit v1.2.3 From 33d002b2d98fa4267d53b189bc3a4b957e8bbe38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Fri, 31 Aug 2018 11:55:57 +0200 Subject: New property component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/ContactDetails.vue | 12 ++-- .../ContactDetails/ContactDetailsAddNewProp.vue | 68 ++++++++++++++++++++++ 2 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 src/components/ContactDetails/ContactDetailsAddNewProp.vue (limited to 'src') diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index cae7cd9c..1d975c14 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -82,13 +82,15 @@
- + +
@@ -104,7 +106,8 @@ import Contact from '../models/contact' import rfcProps from '../models/rfcProps.js' import PopoverMenu from './core/popoverMenu' -import ContactDetailsProperty from './ContactDetails/ContactDetailsProperty' +import ContactProperty from './ContactDetails/ContactDetailsProperty' +import AddNewProp from './ContactDetails/ContactDetailsAddNewProp' import PropertySelect from './Properties/PropertySelect' import PropertyGroups from './Properties/PropertyGroups' @@ -115,9 +118,10 @@ export default { components: { PopoverMenu, - ContactDetailsProperty, + ContactProperty, PropertySelect, - PropertyGroups + PropertyGroups, + AddNewProp }, directives: { diff --git a/src/components/ContactDetails/ContactDetailsAddNewProp.vue b/src/components/ContactDetails/ContactDetailsAddNewProp.vue new file mode 100644 index 00000000..86eb4b77 --- /dev/null +++ b/src/components/ContactDetails/ContactDetailsAddNewProp.vue @@ -0,0 +1,68 @@ + + + + + -- cgit v1.2.3 From 972c17ca34f287590b17a039e84b9d5766ad465a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Mon, 3 Sep 2018 13:26:59 +0200 Subject: 2.1 vcard, new component layout and methods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/components/ContactDetails.vue | 2 +- .../ContactDetails/ContactDetailsAddNewProp.vue | 28 ++++++++++++++++------ src/store/FakeName.vcf | 10 ++++++++ 3 files changed, 32 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/components/ContactDetails.vue b/src/components/ContactDetails.vue index 1d975c14..fdaf521a 100644 --- a/src/components/ContactDetails.vue +++ b/src/components/ContactDetails.vue @@ -89,7 +89,7 @@ - + diff --git a/src/components/ContactDetails/ContactDetailsAddNewProp.vue b/src/components/ContactDetails/ContactDetailsAddNewProp.vue index 86eb4b77..1efcfb43 100644 --- a/src/components/ContactDetails/ContactDetailsAddNewProp.vue +++ b/src/components/ContactDetails/ContactDetailsAddNewProp.vue @@ -21,14 +21,17 @@ --> @@ -36,6 +39,7 @@