From a15c2100d1de9d9cf8f3cfc7e9f6fbed01c4ffbb Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 Aug 2017 13:12:39 +0100 Subject: [PATCH] Sort out right panel callapsing on GroupView --- src/components/structures/GroupView.js | 40 ++++++++++++++++------- src/components/structures/LoggedInView.js | 3 +- 2 files changed, 31 insertions(+), 12 deletions(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 20fc4841ba..14d5d24bb5 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -216,6 +216,10 @@ export default React.createClass({ }); }, + _onShowRhsClick: function(ev) { + dis.dispatch({ action: 'show_right_panel' }); + }, + _onEditClick: function() { this.setState({ editing: true, @@ -384,8 +388,8 @@ export default React.createClass({ let avatarNode; let nameNode; let shortDescNode; - let rightButtons; let roomBody; + let rightButtons = []; const headerClasses = { mx_GroupView_header: true, }; @@ -428,15 +432,19 @@ export default React.createClass({ placeholder={_t('Description')} tabIndex="2" />; - rightButtons = - + rightButtons.push( + {_t('Save')} - + ); + rightButtons.push( + {_t("Cancel")}/ - ; + ); roomBody =