From f326555b67787a28bd6302b432c065e8e90adf02 Mon Sep 17 00:00:00 2001 From: Hunter Miller Date: Tue, 13 Jul 2021 15:11:40 -0500 Subject: [PATCH] CommentItem: prevent actions until confirmed --- .../src/views/components/CommentItem.tsx | 88 ++++++++++--------- 1 file changed, 45 insertions(+), 43 deletions(-) diff --git a/pkg/interface/src/views/components/CommentItem.tsx b/pkg/interface/src/views/components/CommentItem.tsx index 1b3488a853..6b3fd0042b 100644 --- a/pkg/interface/src/views/components/CommentItem.tsx +++ b/pkg/interface/src/views/components/CommentItem.tsx @@ -110,50 +110,52 @@ return false; group={group} isRelativeTime > - - - - {copyDisplay} - - {(window.ship == post?.author && !disabled) ? ( - - Update - - ) : null} - {(window.ship == post?.author || ourRole == 'admin') && - !disabled ? ( - - Delete + {!post.pending && + + + + {copyDisplay} - ) : null} - - } - > - - - + {(window.ship == post?.author && !disabled) ? ( + + Update + + ) : null} + {(window.ship == post?.author || ourRole == 'admin') && + !disabled ? ( + + Delete + + ) : null} + + } + > + + + + }