mirror of
https://github.com/goharbor/harbor
synced 2025-04-08 17:00:57 +00:00
Merge pull request #5372 from zhoumeina/fix_configuration_button_validation
Fix issue install clair the first time use scan will have undefined e…
This commit is contained in:
commit
eafee964c1
|
@ -119,7 +119,12 @@ export class ResultBarChartComponent implements OnInit, OnDestroy {
|
||||||
this.onSubmitting = false;
|
this.onSubmitting = false;
|
||||||
|
|
||||||
// Forcely change status to queued after successful submitting
|
// Forcely change status to queued after successful submitting
|
||||||
this.summary.scan_status = VULNERABILITY_SCAN_STATUS.pending;
|
this.summary = {
|
||||||
|
scan_status: VULNERABILITY_SCAN_STATUS.pending,
|
||||||
|
severity: null,
|
||||||
|
components: null,
|
||||||
|
update_time: null
|
||||||
|
};
|
||||||
|
|
||||||
// Forcely refresh view
|
// Forcely refresh view
|
||||||
this.forceRefreshView(1000);
|
this.forceRefreshView(1000);
|
||||||
|
@ -174,7 +179,7 @@ export class ResultBarChartComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
|
|
||||||
copyValue(newVal: VulnerabilitySummary): void {
|
copyValue(newVal: VulnerabilitySummary): void {
|
||||||
if (!newVal || !newVal.scan_status) { return; }
|
if (!this.summary || !newVal || !newVal.scan_status) { return; }
|
||||||
this.summary.scan_status = newVal.scan_status;
|
this.summary.scan_status = newVal.scan_status;
|
||||||
this.summary.job_id = newVal.job_id;
|
this.summary.job_id = newVal.job_id;
|
||||||
this.summary.severity = newVal.severity;
|
this.summary.severity = newVal.severity;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user