From d1e353adb72d6bce289efc1526d6735f80b0bc6f Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia Date: Thu, 2 May 2024 14:23:59 +0530 Subject: [PATCH] fix: quick action disabled item --- web/components/cycles/quick-actions.tsx | 1 + .../issues/issue-layouts/quick-action-dropdowns/all-issue.tsx | 1 + .../issue-layouts/quick-action-dropdowns/archived-issue.tsx | 1 + .../issues/issue-layouts/quick-action-dropdowns/cycle-issue.tsx | 1 + .../issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx | 1 + .../issues/issue-layouts/quick-action-dropdowns/module-issue.tsx | 1 + .../issue-layouts/quick-action-dropdowns/project-issue.tsx | 1 + web/components/modules/quick-actions.tsx | 1 + web/components/views/quick-actions.tsx | 1 + web/components/workspace/views/default-view-quick-action.tsx | 1 + web/components/workspace/views/quick-action.tsx | 1 + 11 files changed, 11 insertions(+) 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/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 && }