[WEB-4698]fix: work items modal select/deselect button #7599
This commit is contained in:
parent
553f01fde1
commit
cbcdd86569
1 changed files with 4 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/iss
|
||||||
import { ProjectService } from "@/services/project";
|
import { ProjectService } from "@/services/project";
|
||||||
// components
|
// components
|
||||||
import { IssueSearchModalEmptyState } from "./issue-search-modal-empty-state";
|
import { IssueSearchModalEmptyState } from "./issue-search-modal-empty-state";
|
||||||
|
import { filter } from "lodash";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
workspaceSlug: string | undefined;
|
workspaceSlug: string | undefined;
|
||||||
|
|
@ -320,18 +321,19 @@ export const ExistingIssuesListModal: React.FC<Props> = (props) => {
|
||||||
)}
|
)}
|
||||||
</Combobox.Options>
|
</Combobox.Options>
|
||||||
</Combobox>
|
</Combobox>
|
||||||
<div className="flex justify-between items-center">
|
<div className="flex justify-between items-center p-3">
|
||||||
<Button
|
<Button
|
||||||
variant="link-primary"
|
variant="link-primary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onClick={handleSelectIssues}
|
onClick={handleSelectIssues}
|
||||||
disabled={filteredIssues.length === 0}
|
disabled={filteredIssues.length === 0}
|
||||||
|
className={filteredIssues.length === 0 ? "p-0" : ""}
|
||||||
>
|
>
|
||||||
{selectedIssues.length === issues.length
|
{selectedIssues.length === issues.length
|
||||||
? t("issue.select.deselect_all")
|
? t("issue.select.deselect_all")
|
||||||
: t("issue.select.select_all")}
|
: t("issue.select.select_all")}
|
||||||
</Button>
|
</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}>
|
<Button variant="neutral-primary" size="sm" onClick={handleClose}>
|
||||||
{t("common.cancel")}
|
{t("common.cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue