Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Issue #12421 - Change page title based on the site section being viewed #12627

Merged
merged 21 commits into from Oct 26, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion website/client/src/components/groups/group.vue
Expand Up @@ -498,7 +498,8 @@ export default {
if (!this.searchId) this.searchId = this.groupId;
await this.fetchGuild();
this.$store.dispatch('common:setTitle', {
section: this.group.name,
section: this.t$('groupPlans'),
paglias marked this conversation as resolved.
Show resolved Hide resolved
subSection:this.group.name,
paglias marked this conversation as resolved.
Show resolved Hide resolved
});
this.$root.$on('updatedGroup', this.onGroupUpdate);
},
Expand Down
2 changes: 2 additions & 0 deletions website/client/src/router/index.js
Expand Up @@ -6,6 +6,8 @@ import handleRedirect from './handleRedirect';

import ParentPage from '@/components/parentPage';

// NOTE: when adding a page make sure to implement setTitle

// Static Pages
const StaticWrapper = () => import(/* webpackChunkName: "entry" */'@/components/static/staticWrapper');
const HomePage = () => import(/* webpackChunkName: "entry" */'@/components/static/home');
paglias marked this conversation as resolved.
Show resolved Hide resolved
Expand Down
1 change: 0 additions & 1 deletion website/common/locales/en/groups.json
Expand Up @@ -41,7 +41,6 @@
"chat": "Chat",
"sendChat": "Send Chat",
"group": "Group",
"groupPlans": "Group Plans",
"groupName": "Group Name",
"groupLeader": "Group Leader",
"groupID": "Group ID",
Expand Down