From 495465e865764adc7f34ce28166380ef2d26bafc Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 17 Oct 2017 11:59:16 +0100 Subject: [PATCH 1/5] Put invite accept/decline buttons in correct div to align them to the right --- src/components/structures/GroupView.js | 30 ++++++++++++++------------ 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index c9cc375563..38bd1a5f43 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -739,20 +739,22 @@ export default React.createClass({ } return
-
- { _t("%(inviter)s has invited you to join this group", {inviter: group.inviter.userId}) } -
-
- - { _t("Accept") } - - - { _t("Decline") } - +
+
+ { _t("%(inviter)s has invited you to join this group", {inviter: group.inviter.userId}) } +
+
+ + { _t("Accept") } + + + { _t("Decline") } + +
; } else if (group.myMembership === 'join') { From 7df3335570f22dc05bd042cbad9a4126513005cb Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 17 Oct 2017 11:59:52 +0100 Subject: [PATCH 2/5] Only show membership settings when editing --- src/components/structures/GroupView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 38bd1a5f43..f11b81aa7e 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -757,7 +757,7 @@ export default React.createClass({
; - } else if (group.myMembership === 'join') { + } else if (group.myMembership === 'join' && this.state.editing) { let youAreAMemberText = _t("You are a member of this group"); if (this.state.summary.user && this.state.summary.user.is_privileged) { youAreAMemberText = _t("You are an administrator of this group"); From 626f007f4eeeef1421ca610161d1e310299f223a Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Tue, 17 Oct 2017 12:00:31 +0100 Subject: [PATCH 3/5] Move membership section above long description textarea --- src/components/structures/GroupView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index f11b81aa7e..f86519c529 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -890,6 +890,7 @@ export default React.createClass({ , ); bodyNodes = [ + this._getMembershipSection(),