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((
|
||||
<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>
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue