forked from github/plane
chore: remove placeholder from estimate property if no estimates are selected. (#4125)
This commit is contained in:
parent
986f81e3ae
commit
39b5a58ce8
@ -48,7 +48,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {
|
||||
hideIcon = false,
|
||||
onChange,
|
||||
onClose,
|
||||
placeholder = "Estimate",
|
||||
placeholder = "",
|
||||
placement,
|
||||
projectId,
|
||||
showTooltip = false,
|
||||
@ -197,7 +197,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {
|
||||
variant={buttonVariant}
|
||||
>
|
||||
{!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}
|
||||
{BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (
|
||||
{(selectedEstimate || placeholder) && BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (
|
||||
<span className="flex-grow truncate">{selectedEstimate !== null ? selectedEstimate : placeholder}</span>
|
||||
)}
|
||||
{dropdownArrow && (
|
||||
|
@ -21,6 +21,7 @@ export const SpreadsheetEstimateColumn: React.FC<Props> = observer((props: Props
|
||||
onChange={(data) =>
|
||||
onChange(issue, { estimate_point: data }, { changed_property: "estimate_point", change_details: data })
|
||||
}
|
||||
placeholder="Estimate"
|
||||
projectId={issue.project_id}
|
||||
disabled={disabled}
|
||||
buttonVariant="transparent-with-text"
|
||||
|
Loading…
Reference in New Issue
Block a user