diff options
author | Christian Kraus <hanzi@hanzi.cc> | 2020-01-06 10:49:19 +0100 |
---|---|---|
committer | Christian Kraus <hanzi@hanzi.cc> | 2020-01-06 10:49:19 +0100 |
commit | 58187a40f1c41f949770a77b94845d77a53df3f2 (patch) | |
tree | 43c8f6f18bad952e45915c9e57d921f736244cd9 /src/mixins | |
parent | 432c2bbd75c73d4b0a9c1d85c200155356bc6973 (diff) |
Refactor ical.js design set changes into its own service
Signed-off-by: Christian Kraus <hanzi@hanzi.cc>
Diffstat (limited to 'src/mixins')
-rw-r--r-- | src/mixins/PropertyMixin.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/mixins/PropertyMixin.js b/src/mixins/PropertyMixin.js index 031b0437..61c67d52 100644 --- a/src/mixins/PropertyMixin.js +++ b/src/mixins/PropertyMixin.js @@ -21,7 +21,7 @@ */ import debounce from 'debounce' import Contact from '../models/contact' -import ICAL from 'ical.js' +import { setPropertyAlias } from '../services/updateDesignSet' export default { props: { @@ -142,14 +142,7 @@ export default { this.localContact.vCard.addPropertyWithValue(`${group}.x-ablabel`, label) // force update the main design sets - if (ICAL.design.vcard.property[name]) { - ICAL.design.vcard.property[propGroup] - = ICAL.design.vcard.property[name] - } - if (ICAL.design.vcard3.property[name]) { - ICAL.design.vcard3.property[propGroup] - = ICAL.design.vcard3.property[name] - } + setPropertyAlias(name, propGroup) this.$emit('update') }, |