mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-23 08:28:10 +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
|
* if on reply method is undefined then get the panel element
|
||||||
* and scroll to the bottom
|
* and scroll to the bottom
|
||||||
*/
|
*/
|
||||||
if (isUndefined(onReply)) {
|
if (isUndefined(onReply) && isThread) {
|
||||||
const feedPanel = document.getElementById('feed-panel') as HTMLElement;
|
const feedPanel = document.getElementById('feed-panel') as HTMLElement;
|
||||||
const threadPanel = document.getElementById(
|
const threadPanel = document.getElementById(
|
||||||
'thread-panel'
|
'thread-panel'
|
||||||
@ -152,14 +152,16 @@ const PopoverContent: FC<Props> = ({
|
|||||||
</button>
|
</button>
|
||||||
</Popover>
|
</Popover>
|
||||||
|
|
||||||
<button onClick={handleReply}>
|
{(onReply || isThread) && (
|
||||||
<SVGIcons
|
<button onClick={handleReply}>
|
||||||
alt="add-reply"
|
<SVGIcons
|
||||||
icon={Icons.ADD_REPLY}
|
alt="add-reply"
|
||||||
title="Reply"
|
icon={Icons.ADD_REPLY}
|
||||||
width="20px"
|
title="Reply"
|
||||||
/>
|
width="20px"
|
||||||
</button>
|
/>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
{deleteButtonCheck ? (
|
{deleteButtonCheck ? (
|
||||||
<button onClick={handleDelete}>
|
<button onClick={handleDelete}>
|
||||||
|
@ -90,7 +90,7 @@ const ProfilePicture = ({
|
|||||||
|
|
||||||
return profilePic ? (
|
return profilePic ? (
|
||||||
<div
|
<div
|
||||||
className={classNames('profile-image', type)}
|
className={classNames('profile-image', type, className)}
|
||||||
style={{ height: `${height || width}px`, width: `${width}px` }}>
|
style={{ height: `${height || width}px`, width: `${width}px` }}>
|
||||||
<img
|
<img
|
||||||
alt="user"
|
alt="user"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user