From 9afb36fa53bae3037dd52753e067a2e84c479cee Mon Sep 17 00:00:00 2001 From: Rishabh Date: Thu, 28 Jul 2022 18:49:45 +0530 Subject: [PATCH] Disabled context menu edit if editing another comment refs https://github.com/TryGhost/Team/issues/1710 - if a comment is in edit mode, it stops opening edit for another comment till existing edit mode is exited --- apps/comments-ui/src/components/Comment.js | 2 +- apps/comments-ui/src/components/More.js | 2 +- apps/comments-ui/src/components/modals/AuthorContextMenu.js | 2 +- apps/comments-ui/src/components/modals/CommentContextMenu.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/comments-ui/src/components/Comment.js b/apps/comments-ui/src/components/Comment.js index d8d6437b8a..2a8d9ce942 100644 --- a/apps/comments-ui/src/components/Comment.js +++ b/apps/comments-ui/src/components/Comment.js @@ -107,7 +107,7 @@ const Comment = ({updateIsEditing = null, isEditing, ...props}) => {
{!isNotPublished && } {!isNotPublished && (canReply && (isNotPublished || !props.parent) && )} - +
diff --git a/apps/comments-ui/src/components/More.js b/apps/comments-ui/src/components/More.js index 31d3cfcc00..ad505ee02d 100644 --- a/apps/comments-ui/src/components/More.js +++ b/apps/comments-ui/src/components/More.js @@ -30,7 +30,7 @@ const More = (props) => { return (
{show ? : null} - {isContextMenuOpen ? : null} + {isContextMenuOpen ? : null}
); }; diff --git a/apps/comments-ui/src/components/modals/AuthorContextMenu.js b/apps/comments-ui/src/components/modals/AuthorContextMenu.js index c6be7222a6..803e0eb9ca 100644 --- a/apps/comments-ui/src/components/modals/AuthorContextMenu.js +++ b/apps/comments-ui/src/components/modals/AuthorContextMenu.js @@ -11,7 +11,7 @@ const AuthorContextMenu = (props) => { return (
-