From 842d3a4723c18a8dec98a14b892b2b1094acca1c Mon Sep 17 00:00:00 2001 From: FangyuanCheng Date: Mon, 22 Oct 2018 17:15:13 +0800 Subject: [PATCH] Revert "Disable scan button when vulnerability data is not ready." This reverts commit 2a3c1134585893cd26ce2941a9b2a08f73b65979. Signed-off-by: FangyuanCheng --- src/portal/lib/src/tag/tag.component.html | 2 +- src/portal/lib/src/tag/tag.component.ts | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/portal/lib/src/tag/tag.component.html b/src/portal/lib/src/tag/tag.component.html index 7a1f0e597..00521cca6 100644 --- a/src/portal/lib/src/tag/tag.component.html +++ b/src/portal/lib/src/tag/tag.component.html @@ -40,7 +40,7 @@
- + diff --git a/src/portal/lib/src/tag/tag.component.ts b/src/portal/lib/src/tag/tag.component.ts index c2c53cea4..3b4073799 100644 --- a/src/portal/lib/src/tag/tag.component.ts +++ b/src/portal/lib/src/tag/tag.component.ts @@ -56,7 +56,6 @@ import {CopyInputComponent} from "../push-image/copy-input.component"; import {LabelService} from "../service/label.service"; import {operateChanges, OperateInfo, OperationState} from "../operation/operate"; import {OperationService} from "../operation/operation.service"; -import {SystemInfo} from "../service/index"; export interface LabelState { iconsShow: boolean; @@ -125,7 +124,6 @@ export class TagComponent implements OnInit, AfterViewInit { project_id: 0, }; filterOneLabel: Label = this.initFilter; - systemInfo: SystemInfo; @ViewChild('confirmationDialog') @@ -215,12 +213,6 @@ export class TagComponent implements OnInit, AfterViewInit { return len > 210 ? 210 : len; } - get isClairDBFullyReady(): boolean { - return this.systemInfo && - this.systemInfo.clair_vulnerability_status && - this.systemInfo.clair_vulnerability_status.overall_last_update > 0; - } - doSearchTagNames(tagName: string) { this.lastFilteredTagName = tagName; this.currentPage = 1;