Merge pull request #6482 from pureshine/default-version

Return unknow when about dialog cannot get harbor version
This commit is contained in:
Mia ZHOU 2018-12-11 10:30:40 +08:00 committed by GitHub
commit 53858fe2f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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