add notes when following up

picker-v2
Brian Hicks 2022-08-31 08:45:45 -05:00
parent 97791562f6
commit 5c82718702
Signed by: brian
GPG Key ID: C4F324B9CAAB0D50
1 changed files with 6 additions and 0 deletions

View File

@ -43,9 +43,11 @@
let nextSiblingForm = new Form();
nextSiblingForm.addField(new Form.Field.String("name", "What's Next?"));
nextSiblingForm.addField(new Form.Field.String("note", "Notes"));
await nextSiblingForm.show(`What's the next thing that needs to happen after "${currentSibling.name}"?`, "Save");
currentSibling = new Task(nextSiblingForm.values.name, currentSibling.after);
currentSibling.note = nextSiblingForm.values.note;
currentSibling.addTags(originalTask.tags);
}
@ -55,9 +57,11 @@
/////////////////////////////
let nextThingForm = new Form();
nextThingForm.addField(new Form.Field.String("name", "What's Next?"));
nextThingForm.addField(new Form.Field.String("note", "Notes"));
await nextThingForm.show(`What's the next thing that needs to happen to finish "${originalTask.name}"?`, "Save");
let currentSibling = new Task(nextThingForm.values.name, originalTask.beginning);
currentSibling.note = nextThingForm.values.note;
currentSibling.addTags(originalTask.tags);
while (true) {
@ -72,9 +76,11 @@
let nextSiblingForm = new Form();
nextSiblingForm.addField(new Form.Field.String("name", "What's Next?"));
nextSiblingForm.addField(new Form.Field.String("note", "Notes"));
await nextSiblingForm.show(`What's the next thing that needs to happen after "${currentSibling.name}"?`, "Save");
currentSibling = new Task(nextSiblingForm.values.name, currentSibling.after);
currentSibling.note = nextSiblingForm.values.note;
currentSibling.addTags(originalTask.tags);
}