diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index 02df977d3..e0147917b 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -205,6 +205,18 @@ class DetailTop extends Component{ } JoinnowCourse=(id)=>{ + + if(this.props.checkIfLogin()===false){ + this.props.showLoginDialog() + return + } + + if(this.props.current_user&&this.props.current_user.profile_completed===false){ + this.props.showProfileCompleteDialog() + return + } + + this.setState({ yslJointhe:true, Pathcourseid:id @@ -500,6 +512,9 @@ class DetailTop extends Component{ height: 44px !important; line-height: 44px !important; } + .pathdefault{ + cursor: default !important; + } ` } @@ -507,16 +522,16 @@ class DetailTop extends Component{ return(