From ff0396a650e64764970bd467735326d7cb33a758 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 2 Oct 2022 11:06:11 +0200 Subject: [PATCH] check valid group form selects --- webapp/components/Group/GroupForm.vue | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index 2fc019dea..88b7e78bd 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -12,7 +12,7 @@ @@ -40,20 +40,23 @@ {{ $t('group.type') }} + {{formData.groupType}} - - + + @@ -78,6 +81,7 @@ :users="null" :value="formData.description" :hashtags="null" + model="description" name="description" @input="updateEditorDescription" /> @@ -98,19 +102,21 @@ class="select ds-input appearance--auto" :options="actionRadiusOptions" :value="formData.actionRadius" + @change="changeActionRadius($event)" > - - + + @@ -253,6 +259,12 @@ export default { }, }, methods: { + changeGroupType(e) { + this.formData.groupType = e.target.value + }, + changeActionRadius(e) { + this.formData.actionRadius = e.target.value + }, updateEditorDescription(value) { this.$refs.groupForm.update('description', value) },