Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: handled estimation error when the input field is not empty (#4877)

guru_sainathc6a3c0409f43
diff --git a/web/core/components/estimates/points/create.tsx b/web/core/components/estimates/points/create.tsx
index 981714b5f9..9cd7d1e7c9 100644
--- a/web/core/components/estimates/points/create.tsx
+++ b/web/core/components/estimates/points/create.tsx
@@ -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>
diff --git a/web/core/components/estimates/points/update.tsx b/web/core/components/estimates/points/update.tsx
index c6d28ba10c..b557a6658e 100644
--- a/web/core/components/estimates/points/update.tsx
+++ b/web/core/components/estimates/points/update.tsx
@@ -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>