Skip to content

Commit 619139a

Browse files
committed
If there is only one project, select that project when entering progress
1 parent 142a2ed commit 619139a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Types of changes include:
1414

1515
- FIXED: Fixed a bug that sometimes caused chart tooltips to be one day behind where they should be. (h/t Chaotics)
1616
- CHANGED: When creating a new project or goal, you are now taken to that project or goal's page after creation. This matches the already-existing behavior for leaderboards.
17+
- CHANGED: If you only have one project, the Enter Progress dialog will automatically select that project. (h/t Lara)
1718

1819
## 1.4.2
1920

src/components/tally/CreateTallyForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ type CreateTallyFormModel = {
5656
};
5757
const formModel = reactive<CreateTallyFormModel>({
5858
date: new Date(), // default to today
59-
workId: props.initialWorkId ?? null,
59+
workId: props.initialWorkId ?? (projectStore.allProjects.length === 1 ? projectStore.allProjects[0].id : null),
6060
tags: [],
6161
count: null,
6262
measure: lastTallyMeasure.value,

0 commit comments

Comments
 (0)