mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
open edit dialog on clicking (edited)
This commit is contained in:
parent
ef71e6fd4f
commit
8b5f07e63d
@ -454,6 +454,11 @@ module.exports = React.createClass({
|
||||
this.setState({editedMarkerHovered: false});
|
||||
},
|
||||
|
||||
_openHistoryDialog: async function() {
|
||||
const MessageEditHistoryDialog = sdk.getComponent("views.dialogs.MessageEditHistoryDialog");
|
||||
Modal.createDialog(MessageEditHistoryDialog, {mxEvent: this.props.mxEvent});
|
||||
},
|
||||
|
||||
_renderEditedMarker: function() {
|
||||
let editedTooltip;
|
||||
if (this.state.editedMarkerHovered) {
|
||||
@ -468,6 +473,7 @@ module.exports = React.createClass({
|
||||
return (
|
||||
<div
|
||||
key="editedMarker" className="mx_EventTile_edited"
|
||||
onClick={this._openHistoryDialog}
|
||||
onMouseEnter={this._onMouseEnterEditedMarker}
|
||||
onMouseLeave={this._onMouseLeaveEditedMarker}
|
||||
>{editedTooltip}<span>{`(${_t("edited")})`}</span></div>
|
||||
|
Loading…
Reference in New Issue
Block a user