take some notes while doing a task

This commit is contained in:
Julien Calixte
2023-04-13 00:30:40 +02:00
parent 049b52d6b1
commit 5888ea49e7
4 changed files with 35 additions and 2 deletions

View File

@@ -21,6 +21,7 @@ const task = computed(() => taskStore.getTask(props.taskId))
const record = computed(() =>
recordStore.createAndRetrieveTaskRecord(props.taskId, props.recordId)
)
const recordNotes = computed(() => recordStore.getRecordNotes(props.recordId))
const { duration } = useTaskRecordMetadata(record)
const getNextStepId = () => {
@@ -137,6 +138,18 @@ const isSuperiorToEstimation = computed(() => {
than expected.
</span>
</div>
<textarea
name="record-notes"
id="record-notes"
cols="30"
rows="10"
:value="recordNotes"
@input="
//@ts-ignore
recordStore.updateRecordNotes(recordId, $event.target?.value)
"
placeholder="notes"
></textarea>
</main>
</template>