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

Add parenthesis

  • Loading branch information
benstrumeyer committed Nov 12, 2020
commit 3094f8c36d7570addad9cd37d297dee19b5ba756
@@ -30,7 +30,7 @@ const { GHOSTERY_BASE_URL } = globals;
*/
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 shouldDisableSetupLink = (window.location.href.indexOf('setup/4') > -1) && (item.href.substring(1) === 'setup');

const linkClassNames = ClassNames('flex-container align-middle', {
disabled: disableNav || shouldDisableSetupLink
ProTip! Use n and p to navigate between commits in a pull request.