Render profile tab content when profile page is loaded via url. Fixes #11525 (#11588)

* Fix for issue 11525: Updated profile and profilePage components to render profile tab content by default in profile page

* Modified profilePage.vue to set default value for startingPage prop
This commit is contained in:
Vamsi Jada 2019-12-13 18:48:52 +05:30 committed by Matteo Pagliazzi
parent a45b04b1cf
commit 3a5e93f82e
2 changed files with 8 additions and 2 deletions

View file

@ -789,7 +789,7 @@ export default {
this.user = user;
},
selectPage (page) {
this.selectedPage = page;
this.selectedPage = page || 'profile';
window.history.replaceState(null, null, '');
},
sendMessage () {

View file

@ -24,6 +24,12 @@ export default {
components: {
profile,
},
props: ['userId', 'startingPage'],
props: {
userId: String,
startingPage: {
type: String,
default: 'profile',
},
},
};
</script>