Moved the duration field into the ITask, and made it part of every task
This commit is contained in:
parent
fb09052476
commit
6734e9b83a
@ -88,6 +88,15 @@ export const TaskCoreEditor: React.FC<CapabilityEditorProps> = (props) => {
|
||||
InputType.textarea,
|
||||
fieldErrors,
|
||||
)}
|
||||
|
||||
{renderTaskField(
|
||||
task,
|
||||
onChange,
|
||||
"duration",
|
||||
"Duration",
|
||||
InputType.time,
|
||||
fieldErrors,
|
||||
)}
|
||||
{renderTaskField(
|
||||
task,
|
||||
onChange,
|
||||
@ -162,6 +171,7 @@ export function defaultsAssignment(
|
||||
ctx.tTaskType,
|
||||
);
|
||||
task.config.description = "";
|
||||
task.config.duration = "01:00";
|
||||
task.config.predecessors = setDefaultPredecessors(task, tasks);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user