mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Re-modularised the context menus
This commit is contained in:
parent
dca4702b7b
commit
4b26ac58af
@ -249,7 +249,7 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onEditClicked: function(e) {
|
||||
var MessageContextMenu = sdk.getComponent('rooms.MessageContextMenu');
|
||||
var MessageContextMenu = sdk.getComponent('context_menus.MessageContextMenu');
|
||||
var buttonRect = e.target.getBoundingClientRect()
|
||||
|
||||
// The window X and Y offsets are to adjust position when zoomed in to page
|
||||
|
@ -75,7 +75,7 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onBadgeClicked: function(e) {
|
||||
var Menu = sdk.getComponent('rooms.NotificationStateContextMenu');
|
||||
var Menu = sdk.getComponent('context_menus.NotificationStateContextMenu');
|
||||
var elementRect = e.target.getBoundingClientRect();
|
||||
// The window X and Y offsets are to adjust position when zoomed in to page
|
||||
var x = elementRect.right + window.pageXOffset;
|
||||
|
Loading…
x
Reference in New Issue
Block a user