diff --git a/website/client/src/components/group-plans/taskInformation.vue b/website/client/src/components/group-plans/taskInformation.vue index 98cf8035cd..7bc9c4a5bf 100644 --- a/website/client/src/components/group-plans/taskInformation.vue +++ b/website/client/src/components/group-plans/taskInformation.vue @@ -226,7 +226,7 @@ export default { }); this.$store.dispatch('common:setTitle', { subSection: this.group.name, - section: this.$t('group'), + section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t('group'), }); const members = await this.$store.dispatch('members:getGroupMembers', { groupId: this.searchId }); this.group.members = members; diff --git a/website/client/src/components/groups/group.vue b/website/client/src/components/groups/group.vue index 4ab1d79b75..a2ba2499c5 100644 --- a/website/client/src/components/groups/group.vue +++ b/website/client/src/components/groups/group.vue @@ -500,8 +500,10 @@ export default { if (this.isParty) this.searchId = 'party'; if (!this.searchId) this.searchId = this.groupId; await this.fetchGuild(); + + const type = this.isParty ? 'party' : 'guilds'; this.$store.dispatch('common:setTitle', { - section: this.$t('groupPlans'), + section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t(type), subSection: this.group.name, }); this.$root.$on('updatedGroup', this.onGroupUpdate); @@ -520,8 +522,9 @@ export default { onGroupUpdate (group) { const updatedGroup = extend(this.group, group); this.$set(this.group, updatedGroup); + const type = this.isParty ? 'party' : 'guilds'; this.$store.dispatch('common:setTitle', { - section: this.$t('groupPlans'), + section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t(type), subSection: group.name, }); }, @@ -584,19 +587,18 @@ export default { this.$root.$emit('bv::show::modal', 'create-party-modal'); return; } - if (this.isParty) { await this.$store.dispatch('party:getParty', true); this.group = this.$store.state.party.data; this.$store.dispatch('common:setTitle', { - section: this.$t('party'), + section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t('party'), subSection: this.group.name, }); } else { const group = await this.$store.dispatch('guilds:getGroup', { groupId: this.searchId }); this.$set(this, 'group', group); this.$store.dispatch('common:setTitle', { - section: this.$t('guilds'), + section: this.$route.path.startsWith('/group-plans') ? this.$t('groupPlans') : this.$t('guilds'), subSection: group.name, }); }