Merge pull request #899 from ouoertheo/ouoertheo/objective-fix-toastr

Fix objective gen toastr messsage
This commit is contained in:
Cohee
2023-08-08 16:20:38 +03:00
committed by GitHub

View File

@@ -102,8 +102,8 @@ async function generateTasks() {
} }
updateUiTaskList(); updateUiTaskList();
setCurrentTask(); setCurrentTask();
console.info(`Response for Objective: '${taskTree.description}' was \n'${taskResponse}', \nwhich created tasks \n${JSON.stringify(globalTasks.map(v => {return v.toSaveState()}), null, 2)} `) console.info(`Response for Objective: '${currentObjective.description}' was \n'${taskResponse}', \nwhich created tasks \n${JSON.stringify(currentObjective.children.map(v => {return v.toSaveState()}), null, 2)} `)
toastr.success(`Generated ${taskTree.length} tasks`, 'Done!'); toastr.success(`Generated ${currentObjective.children.length} tasks`, 'Done!');
} }
// Call Quiet Generate to check if a task is completed // Call Quiet Generate to check if a task is completed