-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: post task split type, dimension, num buildings (#1003)
* feat (enums): task_split_type enum added * fix (createNewProject): splitTasks - algorithm value replaced with enums & createnewproject definetaskvalidation imported * fix (createNewProject): defineTasksValidation - comparing value replaced with enums * fix (createNewProject): projectDetailsType - types renamed to task_split_type, task_split_dimension & task_num_buildings addeed * fix (createNewProject): splitTasks - adding params conditionally on the basis of splitTasksSelection * fix (createNewroject): condtion replaced with enum
- Loading branch information
Showing
5 changed files
with
83 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 17 additions & 8 deletions
25
src/frontend/src/components/createnewproject/validation/DefineTaskValidation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export enum task_split_type { | ||
divide_on_square = 0, | ||
choose_area_as_task = 1, | ||
task_splitting_algorithm = 2, | ||
} |