mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-22 16:08:13 +00:00
Fix: Do not Show "Reply" button in the toolbox for replies since we only support one level of replies. (#5748)
This commit is contained in:
parent
67c4493892
commit
e9b6de9fa4
@ -75,7 +75,7 @@ const PopoverContent: FC<Props> = ({
|
||||
* if on reply method is undefined then get the panel element
|
||||
* and scroll to the bottom
|
||||
*/
|
||||
if (isUndefined(onReply)) {
|
||||
if (isUndefined(onReply) && isThread) {
|
||||
const feedPanel = document.getElementById('feed-panel') as HTMLElement;
|
||||
const threadPanel = document.getElementById(
|
||||
'thread-panel'
|
||||
@ -152,14 +152,16 @@ const PopoverContent: FC<Props> = ({
|
||||
</button>
|
||||
</Popover>
|
||||
|
||||
<button onClick={handleReply}>
|
||||
<SVGIcons
|
||||
alt="add-reply"
|
||||
icon={Icons.ADD_REPLY}
|
||||
title="Reply"
|
||||
width="20px"
|
||||
/>
|
||||
</button>
|
||||
{(onReply || isThread) && (
|
||||
<button onClick={handleReply}>
|
||||
<SVGIcons
|
||||
alt="add-reply"
|
||||
icon={Icons.ADD_REPLY}
|
||||
title="Reply"
|
||||
width="20px"
|
||||
/>
|
||||
</button>
|
||||
)}
|
||||
|
||||
{deleteButtonCheck ? (
|
||||
<button onClick={handleDelete}>
|
||||
|
@ -90,7 +90,7 @@ const ProfilePicture = ({
|
||||
|
||||
return profilePic ? (
|
||||
<div
|
||||
className={classNames('profile-image', type)}
|
||||
className={classNames('profile-image', type, className)}
|
||||
style={{ height: `${height || width}px`, width: `${width}px` }}>
|
||||
<img
|
||||
alt="user"
|
||||
|
Loading…
x
Reference in New Issue
Block a user