forked from matrix/element-web
get adding FilePanel
This commit is contained in:
parent
a047f81b84
commit
9d72a7cb35
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue