@@ -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
|
||||
|
||||
Reference in New Issue
Block a user