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

Keep sidebar links disabled in entire setup flow

  • Loading branch information
benstrumeyer committed Nov 13, 2020
commit 55dd1902b12929b4c0d03f5e73e4a7d8f4aadc13
@@ -52,7 +52,7 @@ class SideNavigationViewContainer extends Component {
*/
render() {
const { user, location } = this.props;
const disableRegEx = /^(\/setup(?!\/4$))|(\/tutorial(?!\/6$))/;
const disableRegEx = /^(\/setup)|(\/tutorial(?!\/6$))/;

const menuItems = ah ? [
{ href: '/home', icon: 'home', text: t('hub_side_navigation_home') },
ProTip! Use n and p to navigate between commits in a pull request.