mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 03:36:07 +03:00
track whether the LHS is collapsed. (shouldn't this be vector specific too?)
This commit is contained in:
parent
c5e3891a5a
commit
8228a7d485
1 changed files with 11 additions and 0 deletions
|
@ -38,6 +38,7 @@ module.exports = {
|
|||
getInitialState: function() {
|
||||
var s = {
|
||||
logged_in: !!(MatrixClientPeg.get() && MatrixClientPeg.get().credentials),
|
||||
collapse_lhs: false,
|
||||
ready: false,
|
||||
};
|
||||
if (s.logged_in) {
|
||||
|
@ -210,6 +211,16 @@ module.exports = {
|
|||
case 'notifier_enabled':
|
||||
this.forceUpdate();
|
||||
break;
|
||||
case 'hide_left_panel':
|
||||
this.setState({
|
||||
collapse_lhs: true,
|
||||
});
|
||||
break;
|
||||
case 'show_left_panel':
|
||||
this.setState({
|
||||
collapse_lhs: false,
|
||||
});
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue