diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-12-08 10:22:10 +0000 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-08 17:48:12 +0100 |
commit | 213a1fc421da26a9d3852721aaf1cd3fbdc7b162 (patch) | |
tree | 3c036c4d500cc40c3eb2bbbf89943e15f6a5d24f /src/components/Properties/PropertyGroups.vue | |
parent | 544cc04f1608e8c0555cde50dbccd6e0e964589b (diff) |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Diffstat (limited to 'src/components/Properties/PropertyGroups.vue')
-rw-r--r-- | src/components/Properties/PropertyGroups.vue | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/components/Properties/PropertyGroups.vue b/src/components/Properties/PropertyGroups.vue index 41964ef5..b2ce1547 100644 --- a/src/components/Properties/PropertyGroups.vue +++ b/src/components/Properties/PropertyGroups.vue @@ -67,28 +67,28 @@ export default { propModel: { type: Object, default: () => {}, - required: true + required: true, }, value: { type: Array, default: () => [], - required: true + required: true, }, contact: { type: Contact, default: null, - required: true + required: true, }, // Is it read-only? isReadOnly: { type: Boolean, - default: false - } + default: false, + }, }, data() { return { - localValue: this.value + localValue: this.value, } }, @@ -105,7 +105,7 @@ export default { */ formatGroupsTitle() { return this.localValue.slice(3).join(', ') - } + }, }, watch: { @@ -119,7 +119,7 @@ export default { }, selectType: function() { this.localType = this.selectType - } + }, }, methods: { @@ -140,7 +140,7 @@ export default { async addContactToGroup(groupName) { await this.$store.dispatch('addContactToGroup', { contact: this.contact, - groupName + groupName, }) this.updateValue() }, @@ -153,7 +153,7 @@ export default { removeContactToGroup(groupName) { this.$store.dispatch('removeContactToGroup', { contact: this.contact, - groupName + groupName, }) }, @@ -165,15 +165,15 @@ export default { */ validateGroup(groupName) { // Only allow characters without vcard special chars - let groupRegex = /^[^;,:]+$/gmi + const groupRegex = /^[^;,:]+$/gmi if (groupName.match(groupRegex)) { this.addContactToGroup(groupName) this.localValue.push(groupName) return true } return false - } - } + }, + }, } </script> |