diff --git a/web/components/cycles/quick-actions.tsx b/web/components/cycles/quick-actions.tsx index 194bdd068..9c130ef7a 100644 --- a/web/components/cycles/quick-actions.tsx +++ b/web/components/cycles/quick-actions.tsx @@ -180,6 +180,7 @@ export const CycleQuickActions: React.FC = observer((props) => { }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx index b7825fc57..a61688749 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/all-issue.tsx @@ -181,6 +181,7 @@ export const AllIssueQuickActions: React.FC = observer((props }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx index 62b808b3f..e6b3887c3 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/archived-issue.tsx @@ -143,6 +143,7 @@ export const ArchivedIssueQuickActions: React.FC = observer(( }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx index a35de2735..026d050ac 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx @@ -201,6 +201,7 @@ export const CycleIssueQuickActions: React.FC = observer((pro }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx index bbeda85ce..539b45cbd 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx @@ -127,6 +127,7 @@ export const DraftIssueQuickActions: React.FC = observer((pro }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx index 6061c0bee..7f8622626 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/module-issue.tsx @@ -198,6 +198,7 @@ export const ModuleIssueQuickActions: React.FC = observer((pr }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx index b74c9c57d..ac84af556 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/project-issue.tsx @@ -191,6 +191,7 @@ export const ProjectIssueQuickActions: React.FC = observer((p }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/modules/quick-actions.tsx b/web/components/modules/quick-actions.tsx index 4cefa825f..d7b7a23ef 100644 --- a/web/components/modules/quick-actions.tsx +++ b/web/components/modules/quick-actions.tsx @@ -176,6 +176,7 @@ export const ModuleQuickActions: React.FC = observer((props) => { }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/pages/dropdowns/quick-actions.tsx b/web/components/pages/dropdowns/quick-actions.tsx index 9c311797a..e218c1389 100644 --- a/web/components/pages/dropdowns/quick-actions.tsx +++ b/web/components/pages/dropdowns/quick-actions.tsx @@ -104,6 +104,7 @@ export const PageQuickActions: React.FC = observer((props) => { item.action(); }} className="flex items-center gap-2" + disabled={item.disabled} > {item.icon && } {item.title} diff --git a/web/components/project/card.tsx b/web/components/project/card.tsx index 3d536a7c0..5e94b1fb5 100644 --- a/web/components/project/card.tsx +++ b/web/components/project/card.tsx @@ -123,14 +123,14 @@ export const ProjectCard: React.FC = observer((props) => { action: handleOpenInNewTab, title: "Open in new tab", icon: ExternalLink, - shouldRender: project.is_member, + shouldRender: project.is_member && !isArchived, }, { key: "copy-link", action: handleCopyText, title: "Copy link", icon: LinkIcon, - shouldRender: true, + shouldRender: !isArchived, }, { key: "restore", diff --git a/web/components/views/quick-actions.tsx b/web/components/views/quick-actions.tsx index c9993169b..f3f9353e5 100644 --- a/web/components/views/quick-actions.tsx +++ b/web/components/views/quick-actions.tsx @@ -103,6 +103,7 @@ export const ViewQuickActions: React.FC = observer((props) => { }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/workspace/views/default-view-quick-action.tsx b/web/components/workspace/views/default-view-quick-action.tsx index 5a58e1737..669e03a71 100644 --- a/web/components/workspace/views/default-view-quick-action.tsx +++ b/web/components/workspace/views/default-view-quick-action.tsx @@ -104,6 +104,7 @@ export const DefaultWorkspaceViewQuickActions: React.FC = observer((props }, item.className )} + disabled={item.disabled} > {item.icon && }
diff --git a/web/components/workspace/views/quick-action.tsx b/web/components/workspace/views/quick-action.tsx index 3a67a95b9..97373b30f 100644 --- a/web/components/workspace/views/quick-action.tsx +++ b/web/components/workspace/views/quick-action.tsx @@ -132,6 +132,7 @@ export const WorkspaceViewQuickActions: React.FC = observer((props) => { }, item.className )} + disabled={item.disabled} > {item.icon && }