[WEB-4698]fix: work items modal select/deselect button #7599

This commit is contained in:
Vamsi Krishna
2025-08-19 20:07:14 +05:30
committed by GitHub
parent 553f01fde1
commit cbcdd86569
@@ -20,6 +20,7 @@ import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/iss
import { ProjectService } from "@/services/project";
// components
import { IssueSearchModalEmptyState } from "./issue-search-modal-empty-state";
import { filter } from "lodash";
type Props = {
workspaceSlug: string | undefined;
@@ -320,18 +321,19 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
)}
</Combobox.Options>
</Combobox>
<div className="flex justify-between items-center">
<div className="flex justify-between items-center p-3">
<Button
variant="link-primary"
size="sm"
onClick={handleSelectIssues}
disabled={filteredIssues.length === 0}
className={filteredIssues.length === 0 ? "p-0" : ""}
>
{selectedIssues.length === issues.length
? t("issue.select.deselect_all")
: t("issue.select.select_all")}
</Button>
<div className="flex items-center justify-end gap-2 p-3">
<div className="flex items-center justify-end gap-2">
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
{t("common.cancel")}
</Button>