diff --git a/config.sample.json b/config.sample.json index b707ec77..9e69c1c3 100644 --- a/config.sample.json +++ b/config.sample.json @@ -6,8 +6,8 @@ "integrations_rest_url": "https://scalar.vector.im/api", "bug_report_endpoint_url": "https://riot.im/bugreports/submit", "features": { - "feature_groups": "labs" - "feature_pinning": "labs", + "feature_groups": "labs", + "feature_pinning": "labs" }, "default_federate": true, "welcomePageUrl": "home.html", diff --git a/src/components/structures/LeftPanel.js b/src/components/structures/LeftPanel.js index 1988dc5e..60f07a62 100644 --- a/src/components/structures/LeftPanel.js +++ b/src/components/structures/LeftPanel.js @@ -19,6 +19,7 @@ limitations under the License. import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; +import classNames from 'classnames'; import KeyCode from 'matrix-react-sdk/lib/KeyCode'; import sdk from 'matrix-react-sdk'; import dis from 'matrix-react-sdk/lib/dispatcher'; @@ -55,7 +56,7 @@ var LeftPanel = React.createClass({ // We just need to update if any of these things change. if ( this.props.collapsed !== nextProps.collapsed || - this.props.opacity !== nextProps.opacity + this.props.disabled !== nextProps.disabled ) { return true; } @@ -176,14 +177,16 @@ var LeftPanel = React.createClass({ topBox = ; } - let classes = "mx_LeftPanel mx_fadable"; - if (this.props.collapsed) { - classes += " collapsed"; - } + let classes = classNames( + "mx_LeftPanel", "mx_fadable", + { + "collapsed": this.props.collapsed, + "mx_fadable_faded": this.props.disabled, + } + ); return ( -