From 9d9fcbcb36dfb3d75c2d5f1334d0eeb0c53c4c7b Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Fri, 15 May 2020 23:50:31 -0400 Subject: [PATCH] Fixed status onClick when isNotification MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - Now, you will be able to click on any StatusActionBarItem to interact with a status from the notifiation feed without it pushing you to the status page onClick --- app/javascript/gabsocial/components/status.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/javascript/gabsocial/components/status.js b/app/javascript/gabsocial/components/status.js index c76f2ddc..d7fb6180 100644 --- a/app/javascript/gabsocial/components/status.js +++ b/app/javascript/gabsocial/components/status.js @@ -248,8 +248,6 @@ class Status extends ImmutablePureComponent { } handleClick = () => { - // : todo : if clicked on isNotification statusactionbaritem do not go to new page - if (this.props.onClick) { this.props.onClick() return @@ -482,7 +480,7 @@ class Status extends ImmutablePureComponent { data-featured={isFeatured ? 'true' : null} aria-label={textForScreenReader(intl, status, rebloggedByText)} ref={this.handleRef} - onClick={isChild ? this.handleClick : undefined} + onClick={isChild && !isNotification ? this.handleClick : undefined} >