persist and load collapsed rhs globally
This commit is contained in:
parent
f744374d1d
commit
b7c353d0a6
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,7 @@ export default React.createClass({
|
||||||
viewUserId: null,
|
viewUserId: null,
|
||||||
|
|
||||||
collapseLhs: false,
|
collapseLhs: false,
|
||||||
collapsedRhs: false,
|
collapsedRhs: window.localStorage.getItem("mx_rhs_collapsed") === "true",
|
||||||
leftDisabled: false,
|
leftDisabled: false,
|
||||||
middleDisabled: false,
|
middleDisabled: false,
|
||||||
rightDisabled: false,
|
rightDisabled: false,
|
||||||
|
@ -656,11 +656,13 @@ export default React.createClass({
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'hide_right_panel':
|
case 'hide_right_panel':
|
||||||
|
window.localStorage.setItem("mx_rhs_collapsed", true);
|
||||||
this.setState({
|
this.setState({
|
||||||
collapsedRhs: true,
|
collapsedRhs: true,
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'show_right_panel':
|
case 'show_right_panel':
|
||||||
|
window.localStorage.setItem("mx_rhs_collapsed", false);
|
||||||
this.setState({
|
this.setState({
|
||||||
collapsedRhs: false,
|
collapsedRhs: false,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue