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 sidebar links on last page of Tutorial and Customize Setup in the hub #634

Merged
merged 1 commit into from Nov 20, 2020
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Disable the Take a tutorial link in the sidebar on Tutorial page 6

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

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.