You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-01 09:58:03 +03:00
Add click-to-open-settings functionality to GroupAvatar
This commit is contained in:
@@ -918,6 +918,7 @@ export default React.createClass({
|
|||||||
avatarNode = <GroupAvatar
|
avatarNode = <GroupAvatar
|
||||||
groupId={this.props.groupId}
|
groupId={this.props.groupId}
|
||||||
groupAvatarUrl={groupAvatarUrl}
|
groupAvatarUrl={groupAvatarUrl}
|
||||||
|
onClick={this._onEditClick}
|
||||||
width={48} height={48}
|
width={48} height={48}
|
||||||
/>;
|
/>;
|
||||||
if (summary.profile && summary.profile.name) {
|
if (summary.profile && summary.profile.name) {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export default React.createClass({
|
|||||||
width: PropTypes.number,
|
width: PropTypes.number,
|
||||||
height: PropTypes.number,
|
height: PropTypes.number,
|
||||||
resizeMethod: PropTypes.string,
|
resizeMethod: PropTypes.string,
|
||||||
|
onClick: PropTypes.func,
|
||||||
},
|
},
|
||||||
|
|
||||||
getDefaultProps: function() {
|
getDefaultProps: function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user