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

GH-2216: Disable setup sidebar link on fourth page of setup #631

Merged
merged 8 commits into from Nov 20, 2020

Revert disabling customize setup link

  • Loading branch information
benstrumeyer committed Nov 13, 2020
commit 29500bf1b4953158e1594797ff66e716569c6834
@@ -29,11 +29,8 @@ const { GHOSTERY_BASE_URL } = globals;
* @return {JSX} JSX of the Navigation Menu Item
*/
function _renderMenuItem(item, disableNav) {
// Disable the sidebar link that leads to a blank screen on custom setup page 4 (GH-2216)
const shouldDisableSetupLink = (window.location.href.indexOf('setup/4') > -1) && (item.href.substring(1) === 'setup');

const linkClassNames = ClassNames('flex-container align-middle', {
disabled: disableNav || shouldDisableSetupLink
disabled: disableNav
});

return (
ProTip! Use n and p to navigate between commits in a pull request.