Explorar o código

:sparkles: add WorkflowModal

visuddhinanda hai 1 ano
pai
achega
b3294e4292
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      dashboard-v4/dashboard/src/components/task/TaskList.tsx

+ 5 - 1
dashboard-v4/dashboard/src/components/task/TaskList.tsx

@@ -19,6 +19,7 @@ import { GroupIcon } from "../../assets/icon";
 import Options, { IMenu } from "./Options";
 import Filter from "./Filter";
 import { Milestone, Status } from "./TaskReader";
+import { WorkflowModal } from "./Workflow";
 
 const { Text } = Typography;
 function generateUUID() {
@@ -573,7 +574,10 @@ const TaskList = ({
               actionRef.current?.reload();
             }}
           />,
-          <Button type="primary">从模版创建任务</Button>,
+          <WorkflowModal
+            tiger={<Button type="primary">从模版创建任务</Button>}
+            studioName={studioName}
+          />,
         ]}
       />
       <TaskEditDrawer