Wire up CreateRoom to UI.
This commit is contained in:
parent
5d9db52b32
commit
c708976635
11 changed files with 241 additions and 13 deletions
|
@ -32,6 +32,11 @@ module.exports = {
|
|||
PageTypes: {
|
||||
RoomView: "room_view",
|
||||
UserSettings: "user_settings",
|
||||
CreateRoom: "create_room",
|
||||
},
|
||||
|
||||
AuxPanel: {
|
||||
RoomSettings: "room_settings",
|
||||
},
|
||||
|
||||
getInitialState: function() {
|
||||
|
@ -39,6 +44,7 @@ module.exports = {
|
|||
logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials),
|
||||
ready: false,
|
||||
page_type: this.PageTypes.RoomView,
|
||||
aux_panel: null,
|
||||
};
|
||||
},
|
||||
|
||||
|
@ -143,6 +149,11 @@ module.exports = {
|
|||
page_type: this.PageTypes.UserSettings,
|
||||
});
|
||||
break;
|
||||
case 'view_create_room':
|
||||
this.setState({
|
||||
page_type: this.PageTypes.CreateRoom,
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue