From afa9cc84dee2408332c72ef158bb84f6b7a29a1d Mon Sep 17 00:00:00 2001 From: GuessWho Date: Fri, 5 Jan 2018 21:11:28 +0100 Subject: [PATCH] Issue 1539: Provide link to manage profile from user dropdown --- src/components/TopBar/TopBarContainer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/TopBar/TopBarContainer.js b/src/components/TopBar/TopBarContainer.js index 45da07670..b505f0362 100644 --- a/src/components/TopBar/TopBarContainer.js +++ b/src/components/TopBar/TopBarContainer.js @@ -65,6 +65,7 @@ class TopBarContainer extends React.Component { const isHomePage = this.props.match.path === '/' const loginUrl = `${ACCOUNTS_APP_LOGIN_URL}?retUrl=${window.location.protocol}//${window.location.host}/` const registerUrl = !isHomePage ? ACCOUNTS_APP_REGISTER_URL : null + const profileUrl = `https://${DOMAIN}/settings/profile/` const logoutClick = (evt) => { evt.preventDefault() @@ -74,6 +75,7 @@ class TopBarContainer extends React.Component { const userMenuItems = [ [ + { label: 'Profile Settings', link: profileUrl, absolute: true, id: 0}, { label: 'Help', link: 'https://help.topcoder.com/hc/en-us', absolute: true, id: 0 } ], [