|
|
@ -4,6 +4,7 @@ import axios from 'axios';
|
|
|
|
import {getImageUrl, trigger, on, off} from 'educoder';
|
|
|
|
import {getImageUrl, trigger, on, off} from 'educoder';
|
|
|
|
import { Tooltip, message,Popover} from 'antd';
|
|
|
|
import { Tooltip, message,Popover} from 'antd';
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
import CoursesListType from '../coursesPublic/CoursesListType';
|
|
|
|
|
|
|
|
import AccountProfile from"../../user/AccountProfile";
|
|
|
|
import Addcourses from '../coursesPublic/Addcourses';
|
|
|
|
import Addcourses from '../coursesPublic/Addcourses';
|
|
|
|
import '../css/Courses.css';
|
|
|
|
import '../css/Courses.css';
|
|
|
|
import Modals from "../../modals/Modals";
|
|
|
|
import Modals from "../../modals/Modals";
|
|
|
@ -88,6 +89,13 @@ class CoursesBanner extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tojoinclass = (val) => {
|
|
|
|
tojoinclass = (val) => {
|
|
|
|
|
|
|
|
if(this.props.current_user&&this.props.current_user.profile_completed===false){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
AccountProfiletype:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (val === 1) {
|
|
|
|
if (val === 1) {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
Addcoursestypes: true,
|
|
|
|
Addcoursestypes: true,
|
|
|
@ -326,8 +334,16 @@ class CoursesBanner extends Component {
|
|
|
|
postsettings=()=>{
|
|
|
|
postsettings=()=>{
|
|
|
|
window.location.href = "/courses/" + this.props.match.params.coursesId + "/settings";
|
|
|
|
window.location.href = "/courses/" + this.props.match.params.coursesId + "/settings";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideAccountProfile=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let { Addcoursestypes, coursedata, modalsType, modalsTopval, loadtype,modalsBottomval,antIcon,is_guide} = this.state;
|
|
|
|
let { Addcoursestypes, coursedata, modalsType, modalsTopval, loadtype,modalsBottomval,antIcon,is_guide,AccountProfiletype} = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
@ -335,6 +351,13 @@ class CoursesBanner extends Component {
|
|
|
|
is_guide && <Guide></Guide>
|
|
|
|
is_guide && <Guide></Guide>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{AccountProfiletype===true?<AccountProfile
|
|
|
|
|
|
|
|
hideAccountProfile={()=>this.hideAccountProfile()}
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
coursedata === undefined || coursedata.status===401? <div id="course_info_1309" className="courseHead" style={{height: '206px'}}></div>:<div id="course_info_1309" className="courseHead" style={{height: '206px'}}>
|
|
|
|
coursedata === undefined || coursedata.status===401? <div id="course_info_1309" className="courseHead" style={{height: '206px'}}></div>:<div id="course_info_1309" className="courseHead" style={{height: '206px'}}>
|
|
|
|
|
|
|
|
|
|
|
|