- Progress commit

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-03-28 12:30:14 -04:00
parent ae9e9f4b72
commit dc22b96bed
8 changed files with 250 additions and 66 deletions

View File

@@ -84,10 +84,13 @@ function TaskListComponent({
loading,
tasks,
total,
titleTranslation,
refetch,
toggleCompletedStatus,
setTaskUpsertContext,
toggleDeletedStatus
toggleDeletedStatus,
relationshipType,
relationshipId
}) {
const {t} = useTranslation();
@@ -186,7 +189,9 @@ function TaskListComponent({
const handleCreateTask = () => {
setTaskUpsertContext({
actions: {},
context: {},
context: {
[relationshipType]: relationshipId,
},
});
};
@@ -241,7 +246,7 @@ function TaskListComponent({
return (
<Card
title={t("menus.header.my_tasks")}
title={titleTranslation}
extra={tasksExtra()}
>
<Table