get adding FilePanel

pull/2113/head
Matthew Hodgson 2016-08-31 11:57:45 +01:00
parent a047f81b84
commit 9d72a7cb35
1 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ module.exports = React.createClass({
Phase : { Phase : {
MemberList: 'MemberList', MemberList: 'MemberList',
FileList: 'FileList', FilePanel: 'FilePanel',
NotificationPanel: 'NotificationPanel', NotificationPanel: 'NotificationPanel',
MemberInfo: 'MemberInfo', MemberInfo: 'MemberInfo',
}, },
@ -131,7 +131,7 @@ module.exports = React.createClass({
if (this.state.phase == this.Phase.MemberList || this.state.phase === this.Phase.MemberInfo) { if (this.state.phase == this.Phase.MemberList || this.state.phase === this.Phase.MemberInfo) {
membersHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>; membersHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
} }
else if (this.state.phase == this.Phase.FileList) { else if (this.state.phase == this.Phase.FilePanel) {
filesHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>; filesHighlight = <div className="mx_RightPanel_headerButton_highlight"></div>;
} }
else if (this.state.phase == this.Phase.NotificationPanel) { else if (this.state.phase == this.Phase.NotificationPanel) {
@ -178,6 +178,9 @@ module.exports = React.createClass({
else if (this.state.phase == this.Phase.NotificationPanel) { else if (this.state.phase == this.Phase.NotificationPanel) {
panel = <NotificationPanel /> panel = <NotificationPanel />
} }
else if (this.state.phase == this.Phase.FilePanel) {
panel = <FilesPanel roomId={this.props.roomId} />
}
} }
if (!panel) { if (!panel) {