Skip to content

Commit

Permalink
feat(UI/UX): Improved "no tasks"-message.
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-meier committed Sep 29, 2023
1 parent 2deb500 commit 668a92c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const TaskListEditControl = (props: { taskListId: number }) => {
}
{isLoaded && taskList && taskListItems.length == 0 &&
<NoItemsMessage
text={`The list \"${taskList.title}\" does not contain any tasks at the moment.`}
text={`The list \"${taskList.title}\" does not contain any ${doneFilter ? 'completed' : 'open'} tasks at the moment.`}
buttonOptions={!doneFilter ? {text: "Add a task", href: `/lists/${taskList?.id}/tasks/add`} : undefined}
/>
}
Expand Down

0 comments on commit 668a92c

Please sign in to comment.