forked from github/plane
fix: issue card assignee empty state tooltip (#4029)
This commit is contained in:
parent
86ae79f851
commit
9642b761b7
@ -37,6 +37,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
|
|||||||
onChange,
|
onChange,
|
||||||
onClose,
|
onClose,
|
||||||
placeholder = "Members",
|
placeholder = "Members",
|
||||||
|
tooltipContent,
|
||||||
placement,
|
placement,
|
||||||
projectId,
|
projectId,
|
||||||
showTooltip = false,
|
showTooltip = false,
|
||||||
@ -123,7 +124,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
|
|||||||
className={buttonClassName}
|
className={buttonClassName}
|
||||||
isActive={isOpen}
|
isActive={isOpen}
|
||||||
tooltipHeading={placeholder}
|
tooltipHeading={placeholder}
|
||||||
tooltipContent={`${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`}
|
tooltipContent={tooltipContent ?? `${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`}
|
||||||
showTooltip={showTooltip}
|
showTooltip={showTooltip}
|
||||||
variant={buttonVariant}
|
variant={buttonVariant}
|
||||||
>
|
>
|
||||||
|
1
web/components/dropdowns/member/types.d.ts
vendored
1
web/components/dropdowns/member/types.d.ts
vendored
@ -5,6 +5,7 @@ export type MemberDropdownProps = TDropdownProps & {
|
|||||||
dropdownArrow?: boolean;
|
dropdownArrow?: boolean;
|
||||||
dropdownArrowClassName?: string;
|
dropdownArrowClassName?: string;
|
||||||
placeholder?: string;
|
placeholder?: string;
|
||||||
|
tooltipContent?: string;
|
||||||
onClose?: () => void;
|
onClose?: () => void;
|
||||||
} & (
|
} & (
|
||||||
| {
|
| {
|
||||||
|
@ -341,6 +341,9 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
|
|||||||
multiple
|
multiple
|
||||||
buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}
|
buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}
|
||||||
buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}
|
buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}
|
||||||
|
showTooltip={issue?.assignee_ids.length === 0}
|
||||||
|
placeholder="Assignees"
|
||||||
|
tooltipContent=""
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</WithDisplayPropertiesHOC>
|
</WithDisplayPropertiesHOC>
|
||||||
|
Loading…
Reference in New Issue
Block a user