From 499d50ff2e13530fb1be451d23f503844c44a3e0 Mon Sep 17 00:00:00 2001 From: AllForNothing Date: Wed, 16 Sep 2020 14:56:31 +0800 Subject: [PATCH] Disable endpont input fot docker-hub and helm-hub Signed-off-by: AllForNothing --- .../create-edit-endpoint/create-edit-endpoint.component.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts b/src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts index d26a32e24..ac21c9f60 100644 --- a/src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts +++ b/src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts @@ -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 = []; }