|
|
|
@ -320,6 +320,9 @@ class studentsList extends Component{
|
|
|
|
|
isAdmin && on('updateNavSuccess', this.updateNavSuccess)
|
|
|
|
|
}
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
if (this.clipboard) {
|
|
|
|
|
this.clipboard.destroy()
|
|
|
|
|
}
|
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
|
if (isAdmin) {
|
|
|
|
|
off('addStudentSuccess', this.addStudentSuccessListener)
|
|
|
|
@ -420,6 +423,7 @@ class studentsList extends Component{
|
|
|
|
|
invite_code: result.data.invite_code,
|
|
|
|
|
isSpin:false
|
|
|
|
|
}, () => {
|
|
|
|
|
if (course_group_id) {
|
|
|
|
|
if (!this.clipboard) {
|
|
|
|
|
const clipboard = new ClipboardJS('.copybtn');
|
|
|
|
|
clipboard.on('success', (e) => {
|
|
|
|
@ -427,6 +431,7 @@ class studentsList extends Component{
|
|
|
|
|
});
|
|
|
|
|
this.clipboard = clipboard
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|