Skip to content

Commit 768f11f

Browse files
committed
Added new Invite button in the RHS footer
1 parent acdcb21 commit 768f11f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

src/components/structures/RightPanel.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ module.exports = React.createClass({
109109
}
110110
},
111111

112+
onInviteButtonClick: function() {
113+
// call ChatInviteDialog
114+
dis.dispatch({
115+
action: 'view_invite',
116+
roomId: this.props.roomId,
117+
});
118+
},
119+
112120
onRoomStateMember: function(ev, state, member) {
113121
// redraw the badge on the membership list
114122
if (this.state.phase == this.Phase.MemberList && member.roomId === this.props.roomId) {
@@ -236,6 +244,12 @@ module.exports = React.createClass({
236244
</div>
237245
{ panel }
238246
<div className="mx_RightPanel_footer">
247+
<div className="mx_RightPanel_invite" >
248+
<div className="mx_RightPanel_icon" onClick={ this.onInviteButtonClick } >
249+
<TintableSvg src="img/icons-settings.svg" width="35" height="35" />
250+
</div>
251+
<div className="mx_RightPanel_message">Invite to this room</div>
252+
</div>
239253
</div>
240254
</aside>
241255
);

src/skins/vector/css/vector-web/structures/RightPanel.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,26 @@ limitations under the License.
103103
-webkit-flex: 0 0 60px;
104104
flex: 0 0 60px;
105105
}
106+
107+
.mx_RightPanel_footer .mx_RightPanel_invite {
108+
line-height: 35px;
109+
font-size: 14px;
110+
color: #454545;
111+
padding-top: 13px;
112+
padding-left: 5px;
113+
}
114+
115+
.mx_RightPanel_invite .mx_RightPanel_icon {
116+
display: inline-block;
117+
cursor: pointer;
118+
}
119+
120+
.mx_RightPanel_invite .mx_RightPanel_icon object {
121+
pointer-events: none;
122+
}
123+
124+
.mx_RightPanel_invite .mx_RightPanel_message {
125+
display: inline-block;
126+
vertical-align: top;
127+
padding-left: 10px
128+
}

0 commit comments

Comments
 (0)