fix: issue card assignee empty state tooltip (#4029)

This commit is contained in:
Lakhan Baheti 2024-03-21 20:59:08 +05:30 committed by GitHub
parent 86ae79f851
commit 9642b761b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 1 deletions

View File

@ -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}
>

View File

@ -5,6 +5,7 @@ export type MemberDropdownProps = TDropdownProps & {
dropdownArrow?: boolean;
dropdownArrowClassName?: string;
placeholder?: string;
tooltipContent?: string;
onClose?: () => void;
} & (
| {

View File

@ -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>