Forum Panel: Fix context menu for topics (#3332)
This commit is contained in:
parent
8dbb4402a4
commit
89ccff7d9a
@ -168,6 +168,7 @@ const Topic: FC<OwnProps & StateProps> = ({
|
|||||||
style={style}
|
style={style}
|
||||||
href={IS_OPEN_IN_NEW_TAB_SUPPORTED ? `#${createLocationHash(chatId, 'thread', topic.id)}` : undefined}
|
href={IS_OPEN_IN_NEW_TAB_SUPPORTED ? `#${createLocationHash(chatId, 'thread', topic.id)}` : undefined}
|
||||||
contextActions={contextActions}
|
contextActions={contextActions}
|
||||||
|
withPortalForMenu
|
||||||
ref={ref}
|
ref={ref}
|
||||||
>
|
>
|
||||||
<div className="info">
|
<div className="info">
|
||||||
|
|||||||
@ -53,8 +53,6 @@ export default function useTopicContextActions({
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const newTabActionSeparator = actionOpenInNewTab && { isSeparator: true, key: 'newTabSeparator' };
|
|
||||||
|
|
||||||
const actionUnreadMark = topic.unreadCount || !wasOpened
|
const actionUnreadMark = topic.unreadCount || !wasOpened
|
||||||
? {
|
? {
|
||||||
title: lang('MarkAsRead'),
|
title: lang('MarkAsRead'),
|
||||||
@ -110,7 +108,6 @@ export default function useTopicContextActions({
|
|||||||
|
|
||||||
return compact([
|
return compact([
|
||||||
actionOpenInNewTab,
|
actionOpenInNewTab,
|
||||||
newTabActionSeparator,
|
|
||||||
actionPin,
|
actionPin,
|
||||||
actionUnreadMark,
|
actionUnreadMark,
|
||||||
actionMute,
|
actionMute,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user