track RHS collapse state
This commit is contained in:
parent
8228a7d485
commit
f6d577d0c6
1 changed files with 11 additions and 0 deletions
|
@ -39,6 +39,7 @@ module.exports = {
|
|||
var s = {
|
||||
logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials),
|
||||
collapse_lhs: false,
|
||||
collapse_rhs: false,
|
||||
ready: false,
|
||||
};
|
||||
if (s.logged_in) {
|
||||
|
@ -221,6 +222,16 @@ module.exports = {
|
|||
collapse_lhs: false,
|
||||
});
|
||||
break;
|
||||
case 'hide_right_panel':
|
||||
this.setState({
|
||||
collapse_rhs: true,
|
||||
});
|
||||
break;
|
||||
case 'show_right_panel':
|
||||
this.setState({
|
||||
collapse_rhs: false,
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue