Initial unstyled mentions state notifier context menu
This commit is contained in:
parent
9b318e8f61
commit
c89904bc25
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,7 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onBadgeClicked: function(e) {
|
onBadgeClicked: function(e) {
|
||||||
var Label = sdk.getComponent('elements.Label');
|
var Label = sdk.getComponent('rooms.NotificationStateContextMenu');
|
||||||
var elementRect = e.target.getBoundingClientRect();
|
var elementRect = e.target.getBoundingClientRect();
|
||||||
var x = elementRect.right;
|
var x = elementRect.right;
|
||||||
var y = elementRect.top + (elementRect.height / 2);
|
var y = elementRect.top + (elementRect.height / 2);
|
||||||
|
@ -83,6 +83,7 @@ module.exports = React.createClass({
|
||||||
ContextualMenu.createMenu(Label, {
|
ContextualMenu.createMenu(Label, {
|
||||||
left: x,
|
left: x,
|
||||||
top: y,
|
top: y,
|
||||||
|
room: this.props.room,
|
||||||
onFinished: function() {
|
onFinished: function() {
|
||||||
self.setState({menu: false});
|
self.setState({menu: false});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue