Browse Source

add Assignees

visuddhinanda 1 year ago
parent
commit
8c39160150
1 changed files with 11 additions and 5 deletions
  1. 11 5
      dashboard-v4/dashboard/src/components/task/TaskReader.tsx

+ 11 - 5
dashboard-v4/dashboard/src/components/task/TaskReader.tsx

@@ -11,6 +11,7 @@ import TimeShow from "../general/TimeShow";
 import TaskEditButton, { TRelation } from "./TaskEditButton";
 import TaskEditButton, { TRelation } from "./TaskEditButton";
 import PreTask from "./PreTask";
 import PreTask from "./PreTask";
 import Like from "../like/Like";
 import Like from "../like/Like";
+import Assignees from "./Assignees";
 
 
 const { Title } = Typography;
 const { Title } = Typography;
 
 
@@ -154,11 +155,16 @@ const TaskReader = ({ taskId, task, onLoad, onChange, onEdit }: IWidget) => {
       </div>
       </div>
       <Title>{task?.title}</Title>
       <Title>{task?.title}</Title>
       <div>
       <div>
-        <Space>
-          <User {...task?.editor} />
-          <TimeShow updatedAt={task?.updated_at} />
-          <Like resId={task?.id} resType="task" />
-        </Space>
+        <div>
+          <Space>
+            <User {...task?.editor} />
+            <TimeShow updatedAt={task?.updated_at} />
+            <Like resId={task?.id} resType="task" />
+          </Space>
+        </div>
+        <div>
+          <Assignees task={task} showIcon={true} />
+        </div>
       </div>
       </div>
       <Divider />
       <Divider />
       <MdView html={task?.html} />
       <MdView html={task?.html} />