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 editStatus = mxEvent.replacingEvent() && mxEvent.replacingEvent().status;
|
||||||
const redactStatus = mxEvent.localRedactionEvent() && mxEvent.localRedactionEvent().status;
|
const redactStatus = mxEvent.localRedactionEvent() && mxEvent.localRedactionEvent().status;
|
||||||
let resendButton;
|
let resendButton;
|
||||||
|
let resendEditButton;
|
||||||
|
let resendRedactionButton;
|
||||||
let redactButton;
|
let redactButton;
|
||||||
let cancelButton;
|
let cancelButton;
|
||||||
let forwardButton;
|
let forwardButton;
|
||||||
|
@ -255,7 +257,7 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editStatus === EventStatus.NOT_SENT) {
|
if (editStatus === EventStatus.NOT_SENT) {
|
||||||
resendButton = (
|
resendEditButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendEditClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onResendEditClick}>
|
||||||
{ _t('Resend edit') }
|
{ _t('Resend edit') }
|
||||||
</div>
|
</div>
|
||||||
|
@ -263,7 +265,7 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (redactStatus === EventStatus.NOT_SENT) {
|
if (redactStatus === EventStatus.NOT_SENT) {
|
||||||
resendButton = (
|
resendRedactionButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onResendRedactionClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onResendRedactionClick}>
|
||||||
{ _t('Resend removal') }
|
{ _t('Resend removal') }
|
||||||
</div>
|
</div>
|
||||||
|
@ -380,6 +382,9 @@ module.exports = React.createClass({
|
||||||
return (
|
return (
|
||||||
<div className="mx_MessageContextMenu">
|
<div className="mx_MessageContextMenu">
|
||||||
{ resendButton }
|
{ resendButton }
|
||||||
|
{ resendEditButton }
|
||||||
|
{ resendReactionsButton }
|
||||||
|
{ resendRedactionButton }
|
||||||
{ redactButton }
|
{ redactButton }
|
||||||
{ cancelButton }
|
{ cancelButton }
|
||||||
{ forwardButton }
|
{ forwardButton }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue