mirror of
https://github.com/makeplane/plane.git
synced 2026-02-12 00:59:24 -06:00
chore: handled estimation error when the input field is not empty (#4877)
This commit is contained in:
@@ -166,7 +166,14 @@ export const EstimatePointCreate: FC<TEstimatePointCreate> = observer((props) =>
|
||||
autoFocus
|
||||
/>
|
||||
{estimatePointError?.message && (
|
||||
<Tooltip tooltipContent={estimatePointError?.message} position="bottom">
|
||||
<Tooltip
|
||||
tooltipContent={
|
||||
(estimateInputValue || "")?.length >= 1
|
||||
? `You have some unsaved changes, Please save them before clicking on done`
|
||||
: estimatePointError?.message
|
||||
}
|
||||
position="bottom"
|
||||
>
|
||||
<div className="flex-shrink-0 w-3.5 h-3.5 overflow-hidden mr-3 relative flex justify-center items-center text-red-500">
|
||||
<Info size={14} />
|
||||
</div>
|
||||
|
||||
@@ -175,7 +175,14 @@ export const EstimatePointUpdate: FC<TEstimatePointUpdate> = observer((props) =>
|
||||
/>
|
||||
{estimatePointError?.message && (
|
||||
<>
|
||||
<Tooltip tooltipContent={estimatePointError?.message} position="bottom">
|
||||
<Tooltip
|
||||
tooltipContent={
|
||||
(estimateInputValue || "")?.length >= 1
|
||||
? `You have some unsaved changes, Please save them before clicking on done`
|
||||
: estimatePointError?.message
|
||||
}
|
||||
position="bottom"
|
||||
>
|
||||
<div className="flex-shrink-0 w-3.5 h-3.5 overflow-hidden mr-3 relative flex justify-center items-center text-red-500">
|
||||
<Info size={14} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user