From 2884b0e22e93464a615fb4407122518b66839a9c Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 3 May 2024 14:17:21 +0530 Subject: [PATCH] fix: inbox issue header quick action validation (#4344) --- .../inbox/content/inbox-issue-header.tsx | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/web/components/inbox/content/inbox-issue-header.tsx b/web/components/inbox/content/inbox-issue-header.tsx index 34ac6b5a9..472942ed4 100644 --- a/web/components/inbox/content/inbox-issue-header.tsx +++ b/web/components/inbox/content/inbox-issue-header.tsx @@ -292,32 +292,36 @@ export const InboxIssueActionsHeader: FC = observer((p ) : ( - - {canMarkAsAccepted && ( - setIsSnoozeDateModalOpen(true)}> -
- - Snooze -
-
+ <> + {isAllowed && ( + + {canMarkAsAccepted && ( + setIsSnoozeDateModalOpen(true)}> +
+ + Snooze +
+
+ )} + {canMarkAsDuplicate && ( + setSelectDuplicateIssue(true)}> +
+ + Mark as duplicate +
+
+ )} + {canDelete && ( + setDeleteIssueModal(true)}> +
+ + Delete +
+
+ )} +
)} - {canMarkAsDuplicate && ( - setSelectDuplicateIssue(true)}> -
- - Mark as duplicate -
-
- )} - {canDelete && ( - setDeleteIssueModal(true)}> -
- - Delete -
-
- )} -
+ )}