From 3a5e93f82e16aa2040bd71fe8a9b47d1f8fbd165 Mon Sep 17 00:00:00 2001 From: Vamsi Jada Date: Fri, 13 Dec 2019 18:48:52 +0530 Subject: [PATCH] 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 --- website/client/src/components/userMenu/profile.vue | 2 +- website/client/src/components/userMenu/profilePage.vue | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/website/client/src/components/userMenu/profile.vue b/website/client/src/components/userMenu/profile.vue index ce08138dba..2d76148b32 100644 --- a/website/client/src/components/userMenu/profile.vue +++ b/website/client/src/components/userMenu/profile.vue @@ -789,7 +789,7 @@ export default { this.user = user; }, selectPage (page) { - this.selectedPage = page; + this.selectedPage = page || 'profile'; window.history.replaceState(null, null, ''); }, sendMessage () { diff --git a/website/client/src/components/userMenu/profilePage.vue b/website/client/src/components/userMenu/profilePage.vue index 19151d9e29..fedc82a0df 100644 --- a/website/client/src/components/userMenu/profilePage.vue +++ b/website/client/src/components/userMenu/profilePage.vue @@ -24,6 +24,12 @@ export default { components: { profile, }, - props: ['userId', 'startingPage'], + props: { + userId: String, + startingPage: { + type: String, + default: 'profile', + }, + }, };