From 13123c0baeaf2cc155ac107052f006f196657cd4 Mon Sep 17 00:00:00 2001 From: anoopravella <34986736+anoopravella@users.noreply.github.com> Date: Mon, 20 Apr 2020 12:34:24 -0400 Subject: [PATCH] Allow changing name of party without adding description (#12095) * fixed behavior of editing parties, guilds * removed unnecessary whitespace * added v-if, removed v-once(s), simplified group type logic --- website/client/src/components/groups/groupFormModal.vue | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/website/client/src/components/groups/groupFormModal.vue b/website/client/src/components/groups/groupFormModal.vue index bc8e143846..7662c9e012 100644 --- a/website/client/src/components/groups/groupFormModal.vue +++ b/website/client/src/components/groups/groupFormModal.vue @@ -18,7 +18,7 @@

@@ -115,7 +115,8 @@ label.custom-control-label(v-once) {{ $t('allowGuildInvitationsFromNonMembers')
{{ isParty ? $t('updateParty') : $t('updateGuild') }} @@ -540,7 +541,7 @@ export default { if (!this.workingGroup.name) errors.push(this.$t('nameRequired')); if (!this.workingGroup.summary) errors.push(this.$t('summaryRequired')); if (this.workingGroup.summary.length > MAX_SUMMARY_SIZE_FOR_GUILDS) errors.push(this.$t('summaryTooLong')); - if (!this.workingGroup.description) errors.push(this.$t('descriptionRequired')); + if (!this.isParty && !this.workingGroup.description) errors.push(this.$t('descriptionRequired')); if (!this.isParty && (!this.workingGroup.categories || this.workingGroup.categories.length === 0)) errors.push(this.$t('categoiresRequired')); if (errors.length > 0) {