);
});
diff --git a/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx b/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx
index 1415bc098..4aead5469 100644
--- a/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx
+++ b/web/components/editor/rich-text-editor/rich-text-read-only-editor.tsx
@@ -20,7 +20,7 @@ export const RichTextReadOnlyEditor = React.forwardRef
);
}
diff --git a/web/components/gantt-chart/chart/root.tsx b/web/components/gantt-chart/chart/root.tsx
index 098ee76ed..a4ea8cbf2 100644
--- a/web/components/gantt-chart/chart/root.tsx
+++ b/web/components/gantt-chart/chart/root.tsx
@@ -161,7 +161,7 @@ export const ChartViewRoot: FC
= observer((props) => {
return (
diff --git a/web/components/headers/cycle-issues.tsx b/web/components/headers/cycle-issues.tsx
index 2f0e0f766..5263f12cb 100644
--- a/web/components/headers/cycle-issues.tsx
+++ b/web/components/headers/cycle-issues.tsx
@@ -145,8 +145,8 @@ export const CycleIssuesHeader: React.FC = observer(() => {
currentProjectRole && [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER].includes(currentProjectRole);
const issueCount = cycleDetails
- ? issueFilters?.displayFilters?.sub_issue && cycleDetails?.sub_issues
- ? cycleDetails.total_issues + cycleDetails?.sub_issues
+ ? !issueFilters?.displayFilters?.sub_issue && cycleDetails?.sub_issues
+ ? cycleDetails.total_issues - cycleDetails?.sub_issues
: cycleDetails.total_issues
: undefined;
@@ -225,9 +225,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
className="ml-1.5 flex-shrink-0 truncate"
placement="bottom-start"
>
- {currentProjectCycleIds?.map((cycleId) => (
-
- ))}
+ {currentProjectCycleIds?.map((cycleId) => )}
}
/>
diff --git a/web/components/headers/module-issues.tsx b/web/components/headers/module-issues.tsx
index d55657fdd..6f1478ca1 100644
--- a/web/components/headers/module-issues.tsx
+++ b/web/components/headers/module-issues.tsx
@@ -144,8 +144,8 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
currentProjectRole && [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER].includes(currentProjectRole);
const issueCount = moduleDetails
- ? issueFilters?.displayFilters?.sub_issue && moduleDetails.sub_issues
- ? moduleDetails.total_issues + moduleDetails.sub_issues
+ ? !issueFilters?.displayFilters?.sub_issue && moduleDetails.sub_issues
+ ? moduleDetails.total_issues - moduleDetails.sub_issues
: moduleDetails.total_issues
: undefined;
@@ -224,9 +224,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
className="ml-1.5 flex-shrink-0"
placement="bottom-start"
>
- {projectModuleIds?.map((moduleId) => (
-
- ))}
+ {projectModuleIds?.map((moduleId) => )}
}
/>
diff --git a/web/components/headers/project-archives.tsx b/web/components/headers/project-archives.tsx
index 5cee12bdf..6e5638c71 100644
--- a/web/components/headers/project-archives.tsx
+++ b/web/components/headers/project-archives.tsx
@@ -27,8 +27,8 @@ export const ProjectArchivesHeader: FC = observer(() => {
const { isMobile } = usePlatformOS();
const issueCount = currentProjectDetails
- ? issueFilters?.displayFilters?.sub_issue
- ? currentProjectDetails.archived_issues + currentProjectDetails.archived_sub_issues
+ ? !issueFilters?.displayFilters?.sub_issue && currentProjectDetails.archived_sub_issues
+ ? currentProjectDetails.archived_issues - currentProjectDetails.archived_sub_issues
: currentProjectDetails.archived_issues
: undefined;
diff --git a/web/components/headers/project-draft-issues.tsx b/web/components/headers/project-draft-issues.tsx
index 2f80c2182..fdad067a3 100644
--- a/web/components/headers/project-draft-issues.tsx
+++ b/web/components/headers/project-draft-issues.tsx
@@ -78,8 +78,8 @@ export const ProjectDraftIssueHeader: FC = observer(() => {
);
const issueCount = currentProjectDetails
- ? issueFilters?.displayFilters?.sub_issue
- ? currentProjectDetails.draft_issues + currentProjectDetails.draft_sub_issues
+ ? !issueFilters?.displayFilters?.sub_issue && currentProjectDetails.draft_sub_issues
+ ? currentProjectDetails.draft_issues - currentProjectDetails.draft_sub_issues
: currentProjectDetails.draft_issues
: undefined;
diff --git a/web/components/headers/project-issues.tsx b/web/components/headers/project-issues.tsx
index 9363448b3..7466f2ba1 100644
--- a/web/components/headers/project-issues.tsx
+++ b/web/components/headers/project-issues.tsx
@@ -102,8 +102,8 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
currentProjectRole && [EUserProjectRoles.ADMIN, EUserProjectRoles.MEMBER].includes(currentProjectRole);
const issueCount = currentProjectDetails
- ? issueFilters?.displayFilters?.sub_issue
- ? currentProjectDetails?.total_issues + currentProjectDetails?.sub_issues
+ ? !issueFilters?.displayFilters?.sub_issue && currentProjectDetails?.sub_issues
+ ? currentProjectDetails?.total_issues - currentProjectDetails?.sub_issues
: currentProjectDetails?.total_issues
: undefined;
diff --git a/web/components/inbox/content/inbox-issue-header.tsx b/web/components/inbox/content/inbox-issue-header.tsx
index ebe9898c0..7fd038faa 100644
--- a/web/components/inbox/content/inbox-issue-header.tsx
+++ b/web/components/inbox/content/inbox-issue-header.tsx
@@ -293,32 +293,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
-
-
- )}
-
+ >
)}