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,
|
||||
onClose,
|
||||
placeholder = "Members",
|
||||
tooltipContent,
|
||||
placement,
|
||||
projectId,
|
||||
showTooltip = false,
|
||||
@ -123,7 +124,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
|
||||
className={buttonClassName}
|
||||
isActive={isOpen}
|
||||
tooltipHeading={placeholder}
|
||||
tooltipContent={`${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`}
|
||||
tooltipContent={tooltipContent ?? `${value?.length ?? 0} assignee${value?.length !== 1 ? "s" : ""}`}
|
||||
showTooltip={showTooltip}
|
||||
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;
|
||||
dropdownArrowClassName?: string;
|
||||
placeholder?: string;
|
||||
tooltipContent?: string;
|
||||
onClose?: () => void;
|
||||
} & (
|
||||
| {
|
||||
|
@ -341,6 +341,9 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {
|
||||
multiple
|
||||
buttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}
|
||||
buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}
|
||||
showTooltip={issue?.assignee_ids.length === 0}
|
||||
placeholder="Assignees"
|
||||
tooltipContent=""
|
||||
/>
|
||||
</div>
|
||||
</WithDisplayPropertiesHOC>
|
||||
|
Loading…
Reference in New Issue
Block a user