mirror of
https://github.com/makeplane/plane.git
synced 2026-04-27 03:21:45 -05:00
[WEB-4698]fix: work items modal select/deselect button #7599
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user