mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Return unknow when about dialog cannot get harbor version
Signed-off-by: FangyuanCheng <fangyuanc@vmware.com>
This commit is contained in:
parent
c16a9d06f3
commit
cce22d569d
@ -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: []
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user