diff --git a/webapp/components/Group/GroupForm.vue b/webapp/components/Group/GroupForm.vue index 1b2d2037f..4d4593a7b 100644 --- a/webapp/components/Group/GroupForm.vue +++ b/webapp/components/Group/GroupForm.vue @@ -35,13 +35,12 @@ icon="card" v-model="formData.actionRadius" label="Radius" - :options="['local', 'regional', 'global']" + :options="['regional', 'national', 'continental', 'global']" placeholder="Radius ..." > - @@ -60,7 +59,7 @@ - + zurück diff --git a/webapp/pages/group/create.vue b/webapp/pages/group/create.vue index 135039d13..1c95fffbc 100644 --- a/webapp/pages/group/create.vue +++ b/webapp/pages/group/create.vue @@ -29,21 +29,15 @@ export default { }, methods: { async createGroup(value) { + const { name, about, description, groupType, actionRadius, categoryIds } = value + const variables = { name, about, description, groupType, actionRadius, categoryIds } try { await this.$apollo.mutate({ mutation: createGroupMutation, - variables: value, - update: (_, { data: { createGroupData } }) => { - // const { sendNotificationEmails } = createGroup - // this.setCreateGroup({ - // ...this.createGroup, - // sendNotificationEmails, - // }) - this.$toast.success(this.$t('group.group-created')) - }, + variables, }) + this.$toast.success(this.$t('group.group-created')) } catch (error) { - // this.notifyByEmail = !this.notifyByEmail this.$toast.error(error.message) } }, diff --git a/webapp/pages/group/edit/_id.vue b/webapp/pages/group/edit/_id.vue index ca5f25415..4d8f3d7ad 100644 --- a/webapp/pages/group/edit/_id.vue +++ b/webapp/pages/group/edit/_id.vue @@ -7,15 +7,18 @@ - + + + zurück + diff --git a/webapp/pages/group/edit/_id/index.vue b/webapp/pages/group/edit/_id/index.vue index 1b2d2037f..7930f92fc 100644 --- a/webapp/pages/group/edit/_id/index.vue +++ b/webapp/pages/group/edit/_id/index.vue @@ -1,148 +1,39 @@