From 66d85a12b49e16e24965c56cc4e59bc5faa66298 Mon Sep 17 00:00:00 2001 From: "Deng, Qian" Date: Fri, 3 Aug 2018 10:56:06 +0800 Subject: [PATCH] Hide the helmcharts tab when chart museum is not installed. Add parameter for receving chartmuseum installation state. Using that to decide the presentation of helmchart tab in project. --- src/ui_ng/lib/src/service/interface.ts | 1 + src/ui_ng/src/app/app-config.ts | 2 ++ .../app/project/project-detail/project-detail.component.html | 2 +- .../app/project/project-detail/project-detail.component.ts | 4 ++++ 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui_ng/lib/src/service/interface.ts b/src/ui_ng/lib/src/service/interface.ts index a810f1593..d1b870879 100644 --- a/src/ui_ng/lib/src/service/interface.ts +++ b/src/ui_ng/lib/src/service/interface.ts @@ -201,6 +201,7 @@ export interface SystemInfo { with_clair?: boolean; with_notary?: boolean; with_admiral?: boolean; + with_chartmuseum?: boolean; admiral_endpoint?: string; auth_mode?: string; registry_url?: string; diff --git a/src/ui_ng/src/app/app-config.ts b/src/ui_ng/src/app/app-config.ts index f3365323a..ef416de12 100644 --- a/src/ui_ng/src/app/app-config.ts +++ b/src/ui_ng/src/app/app-config.ts @@ -28,6 +28,7 @@ export class AppConfig { next_scan_all: number; registry_storage_provider_name: string; read_only: boolean; + with_chartmuseum: boolean; constructor() { // Set default value @@ -48,5 +49,6 @@ export class AppConfig { this.next_scan_all = 0; this.registry_storage_provider_name = ""; this.read_only = false; + this.with_chartmuseum = false; } } diff --git a/src/ui_ng/src/app/project/project-detail/project-detail.component.html b/src/ui_ng/src/app/project/project-detail/project-detail.component.html index 6572a38e1..0b6853a70 100644 --- a/src/ui_ng/src/app/project/project-detail/project-detail.component.html +++ b/src/ui_ng/src/app/project/project-detail/project-detail.component.html @@ -7,7 +7,7 @@ -