|
|
|
@ -45,7 +45,7 @@ class Fileslists extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getcourse_groupslist=()=>{
|
|
|
|
|
getcourse_groupslists=()=>{
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
|
let url="/courses/"+coursesId+"/all_course_groups.json";
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
@ -59,7 +59,7 @@ class Fileslists extends Component{
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
componentDidMount=()=>{
|
|
|
|
|
this.getcourse_groupslist()
|
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
@ -97,7 +97,7 @@ class Fileslists extends Component{
|
|
|
|
|
}
|
|
|
|
|
componentDidUpdate = (prevProps) => {
|
|
|
|
|
if(prevProps.match.params.main_id != this.props.match.params.main_id){
|
|
|
|
|
this.getcourse_groupslist()
|
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
@ -112,7 +112,7 @@ class Fileslists extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(prevProps.match.params.Id != this.props.match.params.Id){
|
|
|
|
|
this.getcourse_groupslist()
|
|
|
|
|
this.getcourse_groupslists()
|
|
|
|
|
this.setState({
|
|
|
|
|
isSpin:true,
|
|
|
|
|
checkBoxValues:[],
|
|
|
|
|