mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
show the various resend options as different menu items
This commit is contained in:
parent
d66d3ca4d2
commit
8160759a52
1 changed files with 7 additions and 2 deletions
|
@ -233,6 +233,8 @@ module.exports = React.createClass({
|
|||
const editStatus = mxEvent.replacingEvent() && mxEvent.replacingEvent().status;
|
||||
const redactStatus = mxEvent.localRedactionEvent() && mxEvent.localRedactionEvent().status;
|
||||
let resendButton;
|
||||
let resendEditButton;
|
||||
let resendRedactionButton;
|
||||
let redactButton;
|
||||
let cancelButton;
|
||||
let forwardButton;
|
||||
|
@ -255,7 +257,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
if (editStatus === EventStatus.NOT_SENT) {
|
||||
resendButton = (
|
||||
resendEditButton = (
|
||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendEditClick}>
|
||||
{ _t('Resend edit') }
|
||||
</div>
|
||||
|
@ -263,7 +265,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
if (redactStatus === EventStatus.NOT_SENT) {
|
||||
resendButton = (
|
||||
resendRedactionButton = (
|
||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendRedactionClick}>
|
||||
{ _t('Resend removal') }
|
||||
</div>
|
||||
|
@ -380,6 +382,9 @@ module.exports = React.createClass({
|
|||
return (
|
||||
<div className="mx_MessageContextMenu">
|
||||
{ resendButton }
|
||||
{ resendEditButton }
|
||||
{ resendReactionsButton }
|
||||
{ resendRedactionButton }
|
||||
{ redactButton }
|
||||
{ cancelButton }
|
||||
{ forwardButton }
|
||||
|
|
Loading…
Reference in a new issue