Skip to content

Commit

Permalink
feat(individual-project): show no-fly zone popup on nofly zone click
Browse files Browse the repository at this point in the history
  • Loading branch information
suzit-10 committed Aug 23, 2024
1 parent f048057 commit 447f5e1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ const MapSection = () => {
return `This task is locked for mapping ${properties.locked_user_name ? `by ${userDetails?.id === properties?.locked_user_id ? 'you' : properties?.locked_user_name}` : ''}`;
case 'UNFLYABLE_TASK':
return 'This task is not flyable';
default:
case 'COMPLETED':
return 'This Task is completed';
default:
return '';
}
};
return <h6>{popupText(status)}</h6>;
Expand Down Expand Up @@ -256,7 +258,11 @@ const MapSection = () => {
<AsyncPopup
map={map as Map}
popupUI={getPopupUI}
title={`Task #${selectedTaskId}`}
title={
taskStatusObj?.[selectedTaskId]
? `Task #${selectedTaskId}`
: 'No Fly zone'
}
fetchPopupData={(properties: Record<string, any>) => {
dispatch(setProjectState({ selectedTaskId: properties.id }));
setLockedUser({
Expand Down

0 comments on commit 447f5e1

Please sign in to comment.