app.dialog.prompt('addNew', (name) => {
if (!name) {
// prevent the dialog to close here.
return false
}
this.props.addBoardRequest(this.props.course.id, name, (isJoinSuccess, data) => {
})
});
Thanks