You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Initial unstyled mentions state notifier context menu
This commit is contained in:
@@ -75,7 +75,7 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onBadgeClicked: function(e) {
|
||||
var Label = sdk.getComponent('elements.Label');
|
||||
var Label = sdk.getComponent('rooms.NotificationStateContextMenu');
|
||||
var elementRect = e.target.getBoundingClientRect();
|
||||
var x = elementRect.right;
|
||||
var y = elementRect.top + (elementRect.height / 2);
|
||||
@@ -83,6 +83,7 @@ module.exports = React.createClass({
|
||||
ContextualMenu.createMenu(Label, {
|
||||
left: x,
|
||||
top: y,
|
||||
room: this.props.room,
|
||||
onFinished: function() {
|
||||
self.setState({menu: false});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user