Merge pull request #1541 from matrix-org/luke/groups-only-show-settings-icon-to-members
Only show group settings cog to members
This commit is contained in:
commit
c8a489ca77
1 changed files with 9 additions and 7 deletions
|
@ -964,13 +964,15 @@ export default React.createClass({
|
||||||
</AccessibleButton>,
|
</AccessibleButton>,
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
rightButtons.push(
|
if (summary.user && summary.user.membership === 'join') {
|
||||||
<AccessibleButton className="mx_GroupHeader_button"
|
rightButtons.push(
|
||||||
onClick={this._onEditClick} title={_t("Community Settings")} key="_editButton"
|
<AccessibleButton className="mx_GroupHeader_button"
|
||||||
>
|
onClick={this._onEditClick} title={_t("Community Settings")} key="_editButton"
|
||||||
<TintableSvg src="img/icons-settings-room.svg" width="16" height="16" />
|
>
|
||||||
</AccessibleButton>,
|
<TintableSvg src="img/icons-settings-room.svg" width="16" height="16" />
|
||||||
);
|
</AccessibleButton>,
|
||||||
|
);
|
||||||
|
}
|
||||||
if (this.props.collapsedRhs) {
|
if (this.props.collapsedRhs) {
|
||||||
rightButtons.push(
|
rightButtons.push(
|
||||||
<AccessibleButton className="mx_GroupHeader_button"
|
<AccessibleButton className="mx_GroupHeader_button"
|
||||||
|
|
Loading…
Reference in a new issue