vthinkxie commented on a change in pull request #13458:
URL: https://github.com/apache/flink/pull/13458#discussion_r512373566
##########
File path:
flink-runtime-web/web-dashboard/src/app/pages/job/checkpoints/detail/job-checkpoints-detail.component.ts
##########
@@ -57,9 +60,23 @@ export class JobCheckpointsDetailComponent implements OnInit
{
refresh() {
Review comment:
Hi @gm7y8
could you try to replace the refresh function with the codes below
```ts
refresh() {
this.isLoading = true;
if (this.jobDetail && this.jobDetail.jid) {
forkJoin([
this.jobService.loadCheckpointConfig(this.jobDetail.jid),
this.jobService.loadCheckpointDetails(this.jobDetail.jid,
this.checkPoint.id)
]).subscribe(
([config, detail]) => {
this.checkPointConfig = config;
this.checkPointDetail = detail;
if (this.checkPointDetail.checkpoint_type === 'CHECKPOINT') {
if (this.checkPointConfig.unaligned_checkpoints) {
this.checkPointType = 'unaligned checkpoint';
} else {
this.checkPointType = 'aligned checkpoint';
}
} else if (this.checkPointDetail.checkpoint_type ===
'SYNC_SAVEPOINT') {
this.checkPointType = 'savepoint on cancel';
} else if (this.checkPointDetail.checkpoint_type === 'SAVEPOINT') {
this.checkPointType = 'savepoint';
} else {
this.checkPointType = '-';
}
this.isLoading = false;
this.cdr.markForCheck();
},
() => {
this.isLoading = false;
this.cdr.markForCheck();
}
);
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]