vthinkxie commented on a change in pull request #13458:
URL: https://github.com/apache/flink/pull/13458#discussion_r513374506



##########
File path: 
flink-runtime-web/web-dashboard/src/app/pages/job/checkpoints/detail/job-checkpoints-detail.component.ts
##########
@@ -55,21 +59,38 @@ export class JobCheckpointsDetailComponent implements 
OnInit {
   }
 
   refresh() {
-    this.isLoading = true;
-    if (this.jobDetail && this.jobDetail.jid) {
-      this.jobService.loadCheckpointDetails(this.jobDetail.jid, 
this.checkPoint.id).subscribe(
-        data => {
-          this.checkPointDetail = data;
-          this.isLoading = false;
-          this.cdr.markForCheck();
-        },
-        () => {
-          this.isLoading = false;
-          this.cdr.markForCheck();
-        }
-      );
+      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();
+          }
+        );
+      }
     }

Review comment:
       There are two extra spaces in each line, the others look good to me




----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to