File tree Expand file tree Collapse file tree
dinky-web/src/pages/DevOps/JobDetail/CheckPointsTab/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,9 @@ import {
2727 RocketOutlined ,
2828 SyncOutlined
2929} from '@ant-design/icons' ;
30- import { Descriptions , Space , Tag } from 'antd' ;
30+ import { Button , Descriptions , Space , Tag } from 'antd' ;
31+ import { recoveryCheckPoint } from "@/pages/DevOps/JobDetail/CheckPointsTab/components/functions" ;
32+ import { l } from "@/utils/intl" ;
3133
3234const CkDesc = ( props : JobProps ) => {
3335 const { jobDetail } = props ;
@@ -83,6 +85,15 @@ const CkDesc = (props: JobProps) => {
8385 { latest ?. completed ?. external_path ?? 'None' }
8486 </ EllipsisMiddle >
8587 </ Tag >
88+ { latest ?. completed ?. external_path ? (
89+ < Button
90+ onClick = { ( ) =>
91+ recoveryCheckPoint ( jobDetail ?. instance ?. taskId , latest ?. completed ?. external_path )
92+ }
93+ >
94+ { l ( 'devops.jobinfo.ck.recovery.recoveryTo' ) }
95+ </ Button >
96+ ) : undefined }
8697 </ Descriptions . Item >
8798
8899 < Descriptions . Item label = 'Persist Checkpoints Externally Enabled' >
You can’t perform that action at this time.
0 commit comments