Unverified Commit 7ae96f7d authored by Will Sun's avatar Will Sun Committed by GitHub
Browse files

Merge pull request #13072 from AllForNothing/registry

Disable endpoint input for docker-hub and helm-hub
parents 7e097afd 2d1c7ac7
......@@ -38,6 +38,7 @@ const FAKE_PASSWORD = "rjGcfuRu";
const FAKE_JSON_KEY = "No Change";
const METADATA_URL = CURRENT_BASE_HREF + "/replication/adapterinfos";
const HELM_HUB = "helm-hub";
const FIXED_PATTERN_TYPE: string = "EndpointPatternTypeFix";
@Component({
selector: "hbr-create-edit-endpoint",
templateUrl: "./create-edit-endpoint.component.html",
......@@ -271,6 +272,9 @@ export class CreateEditEndpointComponent
if (this.endpointList.length === 1) {
this.target.url = this.endpointList[0].value;
}
if (this.adapterInfo[selectValue].endpoint_pattern.endpoint_type === FIXED_PATTERN_TYPE) {
this.urlDisabled = true;
}
} else {
this.endpointList = [];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment