reorder message context menu items
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
parent
c2d51a115b
commit
9a1be63baa
2 changed files with 16 additions and 53 deletions
|
@ -389,61 +389,24 @@ export default class MessageContextMenu extends React.Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (forwardButton || quoteButton || collapseReplyThread) {
|
optionLists.push((
|
||||||
optionLists.push((
|
<IconizedContextMenuOptionList key={'group1'}>
|
||||||
<IconizedContextMenuOptionList key={'group1'}>
|
{quoteButton}
|
||||||
{quoteButton}
|
{forwardButton}
|
||||||
{forwardButton}
|
{pinButton}
|
||||||
{collapseReplyThread}
|
{permalinkButton}
|
||||||
</IconizedContextMenuOptionList>
|
{reportEventButton}
|
||||||
));
|
{externalURLButton}
|
||||||
}
|
{viewSourceButton}
|
||||||
|
{unhidePreviewButton}
|
||||||
if (resendReactionsButton) {
|
{resendReactionsButton}
|
||||||
optionLists.push((
|
{collapseReplyThread}
|
||||||
<IconizedContextMenuOptionList key={'group2'}>
|
</IconizedContextMenuOptionList>
|
||||||
{resendReactionsButton}
|
));
|
||||||
</IconizedContextMenuOptionList>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (externalURLButton || permalinkButton) {
|
|
||||||
optionLists.push((
|
|
||||||
<IconizedContextMenuOptionList key={'group3'}>
|
|
||||||
{externalURLButton}
|
|
||||||
{permalinkButton}
|
|
||||||
</IconizedContextMenuOptionList>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (reportEventButton) {
|
|
||||||
optionLists.push((
|
|
||||||
<IconizedContextMenuOptionList key={'group4'}>
|
|
||||||
{reportEventButton}
|
|
||||||
</IconizedContextMenuOptionList>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (viewSourceButton) {
|
|
||||||
optionLists.push((
|
|
||||||
<IconizedContextMenuOptionList key={'group5'}>
|
|
||||||
{viewSourceButton}
|
|
||||||
</IconizedContextMenuOptionList>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (pinButton || unhidePreviewButton) {
|
|
||||||
optionLists.push((
|
|
||||||
<IconizedContextMenuOptionList key={'group6'}>
|
|
||||||
{pinButton}
|
|
||||||
{unhidePreviewButton}
|
|
||||||
</IconizedContextMenuOptionList>
|
|
||||||
));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (redactButton) {
|
if (redactButton) {
|
||||||
optionLists.push((
|
optionLists.push((
|
||||||
<IconizedContextMenuOptionList key={'group7'} red>
|
<IconizedContextMenuOptionList key={'group2'} red>
|
||||||
{redactButton}
|
{redactButton}
|
||||||
</IconizedContextMenuOptionList>
|
</IconizedContextMenuOptionList>
|
||||||
));
|
));
|
||||||
|
|
|
@ -2252,7 +2252,7 @@
|
||||||
"Sending": "Sending",
|
"Sending": "Sending",
|
||||||
"Sent": "Sent",
|
"Sent": "Sent",
|
||||||
"Open link": "Open link",
|
"Open link": "Open link",
|
||||||
"Forward message": "Forward message",
|
"Forward": "Forward",
|
||||||
"Message preview": "Message preview",
|
"Message preview": "Message preview",
|
||||||
"Search for rooms or people": "Search for rooms or people",
|
"Search for rooms or people": "Search for rooms or people",
|
||||||
"Confirm abort of host creation": "Confirm abort of host creation",
|
"Confirm abort of host creation": "Confirm abort of host creation",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue