From 110be4c88283be2f423db1c3ecd2462e9dcf76b4 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain Date: Mon, 17 Jul 2023 18:32:19 +0530 Subject: [PATCH] feat: not showing 'subscribe' button on issue created by user & assigned to user not showing 'Create by you' for view & guest of the workspace --- apps/app/components/issues/sidebar.tsx | 17 ++++- .../notifications/notification-popover.tsx | 69 +++++++++++++------ 2 files changed, 65 insertions(+), 21 deletions(-) diff --git a/apps/app/components/issues/sidebar.tsx b/apps/app/components/issues/sidebar.tsx index c1cf3f09b..98e808aee 100644 --- a/apps/app/components/issues/sidebar.tsx +++ b/apps/app/components/issues/sidebar.tsx @@ -31,7 +31,7 @@ import { SidebarLabelSelect, } from "components/issues"; // ui -import { CustomDatePicker } from "components/ui"; +import { CustomDatePicker, Icon } from "components/ui"; // icons import { LinkIcon, @@ -236,6 +236,21 @@ export const IssueDetailsSidebar: React.FC = ({ {issueDetail?.project_detail?.identifier}-{issueDetail?.sequence_id}
+ {issueDetail?.created_by !== user?.id && + !issueDetail?.assignees.includes(user?.id ?? "") && + (fieldsToShow.includes("all") || fieldsToShow.includes("link")) && ( + + )} {(fieldsToShow.includes("all") || fieldsToShow.includes("link")) && ( - ))} + {notificationTabs.map((tab) => + tab.value === "created" ? ( + isMember || isOwner ? ( + + ) : null + ) : ( + + ) + )}
)}