diff --git a/src/components/structures/FilePanel.js b/src/components/structures/FilePanel.js index 595e27585b..23feb4cf30 100644 --- a/src/components/structures/FilePanel.js +++ b/src/components/structures/FilePanel.js @@ -116,7 +116,6 @@ const FilePanel = React.createClass({ timelineSet={this.state.timelineSet} showUrlPreview = {false} tileShape="file_grid" - disabled={this.props.disabled} empty={_t('There are no visible files in this room')} /> ); diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 6e9e6aff7c..01e12dae14 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -79,9 +79,6 @@ module.exports = React.createClass({ // callback which is called when more content is needed. onFillRequest: React.PropTypes.func, - // whether to display as faded and uninteractable - disabled: React.PropTypes.bool, - // className for the panel className: React.PropTypes.string.isRequired, @@ -652,10 +649,9 @@ module.exports = React.createClass({ const style = this.props.hidden ? { display: 'none' } : {}; const className = classNames( - this.props.className, "mx_fadable", + this.props.className, { "mx_MessagePanel_alwaysShowTimestamps": this.props.alwaysShowTimestamps, - "mx_fadable_faded": this.props.disabled, }, ); diff --git a/src/components/structures/NotificationPanel.js b/src/components/structures/NotificationPanel.js index 3c8f34fb86..3f1269f8a7 100644 --- a/src/components/structures/NotificationPanel.js +++ b/src/components/structures/NotificationPanel.js @@ -45,7 +45,6 @@ const NotificationPanel = React.createClass({ manageReadMarkers={false} timelineSet={timelineSet} showUrlPreview = {false} - opacity={this.props.opacity} tileShape="notif" empty={_t('You have no visible notifications')} /> diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 19f79ff50e..9b6dbb4c27 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1753,15 +1753,9 @@ module.exports = React.createClass({ let hideMessagePanel = false; if (this.state.searchResults) { - const searchResultsClasses = classNames( - "mx_RoomView_messagePanel", "mx_RoomView_searchResultsPanel", "mx_fadable", - { - "mx_fadable_faded": this.props.disabled, - }, - ); searchResultsPanel = ( @@ -1794,21 +1788,14 @@ module.exports = React.createClass({ onScroll={this.onMessageListScroll} onReadMarkerUpdated={this._updateTopUnreadMessagesBar} showUrlPreview = {this.state.showUrlPreview} - disabled={this.props.disabled} className="mx_RoomView_messagePanel" />); let topUnreadMessagesBar = null; if (this.state.showTopUnreadMessagesBar) { const TopUnreadMessagesBar = sdk.getComponent('rooms.TopUnreadMessagesBar'); - const topUnreadMessagesBarClasses = classNames( - "mx_RoomView_topUnreadMessagesBar", "mx_fadable", - { - "mx_fadable_faded": this.props.disabled, - }, - ); topUnreadMessagesBar = ( -
+
{ auxPanel } - { topUnreadMessagesBar } - { messagePanel } - { searchResultsPanel } -
-
-
- { statusBar } +
+ { topUnreadMessagesBar } + { messagePanel } + { searchResultsPanel } +
+
+
+ { statusBar } +
+ { messageComposer }
- { messageComposer }
); }, diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index a6c1fcde6c..2bf8a08b98 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -89,9 +89,6 @@ var TimelinePanel = React.createClass({ // callback which is called when the read-up-to mark is updated. onReadMarkerUpdated: React.PropTypes.func, - // whether to display as faded and uninteractable - disabled: React.PropTypes.bool, - // maximum number of events to show in a timeline timelineCap: React.PropTypes.number, @@ -1157,7 +1154,6 @@ var TimelinePanel = React.createClass({ onScroll={this.onMessageListScroll} onFillRequest={this.onMessageListFillRequest} onUnfillRequest={this.onMessageListUnfillRequest} - disabled={this.props.disabled} isTwelveHour={this.state.isTwelveHour} alwaysShowTimestamps={this.state.alwaysShowTimestamps} className={this.props.className} diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 8e27520d89..93f20b8ec3 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -371,7 +371,7 @@ export default class MessageComposer extends React.Component { ); return ( -
+
{ controls } @@ -410,9 +410,6 @@ MessageComposer.propTypes = { // callback when a file to upload is chosen uploadFile: React.PropTypes.func.isRequired, - // opacity for dynamic UI fading effects - opacity: React.PropTypes.number, - // string representing the current room app drawer state showApps: React.PropTypes.bool, };