Wire up CreateRoom to UI.
This commit is contained in:
parent
5d9db52b32
commit
c708976635
11 changed files with 241 additions and 13 deletions
|
@ -77,11 +77,11 @@ module.exports = {
|
|||
|
||||
var self = this;
|
||||
|
||||
deferred.then(function () {
|
||||
deferred.then(function (resp) {
|
||||
self.setState({
|
||||
phase: self.phases.CREATED,
|
||||
});
|
||||
self.props.onRoomCreated();
|
||||
self.props.onRoomCreated(resp.room_id);
|
||||
}, function(err) {
|
||||
self.setState({
|
||||
phase: self.phases.ERROR,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue