From a8f773e678fb012cb2af155892d5b0dcb8078ed1 Mon Sep 17 00:00:00 2001 From: AllForNothing Date: Fri, 16 Aug 2019 14:40:27 +0800 Subject: [PATCH] fix cve-whitelist bugs Signed-off-by: AllForNothing --- .../system/system-settings.component.scss | 2 -- .../project-policy-config.component.html | 18 +++++++++--------- .../project-policy-config.component.scss | 2 -- .../project-policy-config.component.ts | 3 +++ 4 files changed, 12 insertions(+), 13 deletions(-) diff --git a/src/portal/lib/src/config/system/system-settings.component.scss b/src/portal/lib/src/config/system/system-settings.component.scss index 18a577cc3..5b708737f 100644 --- a/src/portal/lib/src/config/system/system-settings.component.scss +++ b/src/portal/lib/src/config/system/system-settings.component.scss @@ -27,8 +27,6 @@ width: 222px; color: #0079bb; overflow-y: auto; - white-space: nowrap; - li { height: 24px; line-height: 24px; diff --git a/src/portal/lib/src/project-policy-config/project-policy-config.component.html b/src/portal/lib/src/project-policy-config/project-policy-config.component.html index 31912edc3..01df1bbba 100644 --- a/src/portal/lib/src/project-policy-config/project-policy-config.component.html +++ b/src/portal/lib/src/project-policy-config/project-policy-config.component.html @@ -89,12 +89,12 @@ - - @@ -102,10 +102,10 @@
- -
@@ -144,17 +144,17 @@
- -
-
diff --git a/src/portal/lib/src/project-policy-config/project-policy-config.component.scss b/src/portal/lib/src/project-policy-config/project-policy-config.component.scss index 4b7cab641..05d4bc5d1 100644 --- a/src/portal/lib/src/project-policy-config/project-policy-config.component.scss +++ b/src/portal/lib/src/project-policy-config/project-policy-config.component.scss @@ -17,8 +17,6 @@ width: 222px; color: #0079bb; overflow-y: auto; - white-space: nowrap; - li { height: 24px; line-height: 24px; diff --git a/src/portal/lib/src/project-policy-config/project-policy-config.component.ts b/src/portal/lib/src/project-policy-config/project-policy-config.component.ts index 58a68227e..a6ab59495 100644 --- a/src/portal/lib/src/project-policy-config/project-policy-config.component.ts +++ b/src/portal/lib/src/project-policy-config/project-policy-config.component.ts @@ -170,6 +170,9 @@ export class ProjectPolicyConfigComponent implements OnInit { if (!response.cve_whitelist['expires_at']) { response.cve_whitelist['expires_at'] = null; } + if (!response.metadata.reuse_sys_cve_whitelist) { + response.metadata.reuse_sys_cve_whitelist = "true"; + } if (response && response.cve_whitelist) { this.projectWhitelist = clone(response.cve_whitelist); this.projectWhitelistOrigin = clone(response.cve_whitelist);