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

fix(nms): Fix settings link on host portal #13027

Merged
Merged
Changes from all commits
Commits
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
7 changes: 6 additions & 1 deletion nms/app/components/ProfileButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ const ProfileButton = (props: Props) => {

const hasAdministration = user.isSuperUser && !isOrganizations;
const hasDocumentation = isFeatureEnabled('documents_site');
const settingsPath = isOrganizations
? '/host/settings'
: networkId === null
? '/settings'
: 'settings';

return (
<Popout
Expand All @@ -128,7 +133,7 @@ const ProfileButton = (props: Props) => {
onClick={() => {
GeneralLogger.info(Events.SETTINGS_CLICKED);
props.setMenuOpen(false);
navigate(networkId === null ? '/settings' : 'settings');
navigate(settingsPath);
}}
component="a">
<Text className={classes.profileItemText}>Account Settings</Text>
Expand Down