Return unknow when about dialog cannot get harbor version

Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
FangyuanCheng 2018-12-07 13:05:10 +08:00
parent c16a9d06f3
commit cce22d569d
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export class AppConfig {
this.project_creation_restriction = "everyone"; this.project_creation_restriction = "everyone";
this.self_registration = true; this.self_registration = true;
this.has_ca_root = false; this.has_ca_root = false;
this.harbor_version = "1.2.0"; this.harbor_version = "unknown";
this.clair_vulnerability_status = { this.clair_vulnerability_status = {
overall_last_update: 0, overall_last_update: 0,
details: [] details: []

View File

@ -47,7 +47,7 @@ export class AboutDialogComponent implements OnInit {
public get version(): string { public get version(): string {
let appConfig = this.appConfigService.getConfig(); let appConfig = this.appConfigService.getConfig();
return appConfig ? appConfig.harbor_version : "n/a"; return appConfig.harbor_version;
} }
public open(): void { public open(): void {