reorder message context menu items

Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
This commit is contained in:
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>
));