mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 02:35:17 +01:00
Use external_url if exists on Add Repo Command chart details page
Signed-off-by: strainovic <nenad.strainovic@gmail.com>
This commit is contained in:
parent
38a9690f9a
commit
84d7307e28
@ -44,12 +44,16 @@ export class ChartDetailComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
this.systemInfoService.getSystemInfo()
|
||||
.subscribe(systemInfo => {
|
||||
let scheme = 'http://';
|
||||
this.systemInfo = systemInfo;
|
||||
if (this.systemInfo.has_ca_root) {
|
||||
scheme = 'https://';
|
||||
if (this.systemInfo.external_url) {
|
||||
this.repoURL = `${this.systemInfo.external_url}`;
|
||||
} else {
|
||||
let scheme = 'http://';
|
||||
if (this.systemInfo.has_ca_root) {
|
||||
scheme = 'https://';
|
||||
}
|
||||
this.repoURL = `${scheme}${this.systemInfo.registry_url}`;
|
||||
}
|
||||
this.repoURL = `${scheme}${this.systemInfo.registry_url}`;
|
||||
}, error => this.errorHandler.error(error));
|
||||
this.refresh();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user