reorder message context menu items

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
pull/21833/head
Michael Weimann 2021-06-22 19:51:11 +02:00
parent c2d51a115b
commit 9a1be63baa
No known key found for this signature in database
GPG Key ID: 34F0524D4DA694A1
2 changed files with 16 additions and 53 deletions

View File

@ -389,61 +389,24 @@ export default class MessageContextMenu extends React.Component {
);
}
if (forwardButton || quoteButton || collapseReplyThread) {
optionLists.push((
<IconizedContextMenuOptionList key={'group1'}>
{quoteButton}
{forwardButton}
{collapseReplyThread}
</IconizedContextMenuOptionList>
));
}
if (resendReactionsButton) {
optionLists.push((
<IconizedContextMenuOptionList key={'group2'}>
{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>
));
}
optionLists.push((
<IconizedContextMenuOptionList key={'group1'}>
{quoteButton}
{forwardButton}
{pinButton}
{permalinkButton}
{reportEventButton}
{externalURLButton}
{viewSourceButton}
{unhidePreviewButton}
{resendReactionsButton}
{collapseReplyThread}
</IconizedContextMenuOptionList>
));
if (redactButton) {
optionLists.push((
<IconizedContextMenuOptionList key={'group7'} red>
<IconizedContextMenuOptionList key={'group2'} red>
{redactButton}
</IconizedContextMenuOptionList>
));

View File

@ -2252,7 +2252,7 @@
"Sending": "Sending",
"Sent": "Sent",
"Open link": "Open link",
"Forward message": "Forward message",
"Forward": "Forward",
"Message preview": "Message preview",
"Search for rooms or people": "Search for rooms or people",
"Confirm abort of host creation": "Confirm abort of host creation",