Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CSAN
Csan
Commits
7ae96f7d
Unverified
Commit
7ae96f7d
authored
Sep 17, 2020
by
Will Sun
Committed by
GitHub
Sep 17, 2020
Browse files
Merge pull request #13072 from AllForNothing/registry
Disable endpoint input for docker-hub and helm-hub
parents
7e097afd
2d1c7ac7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts
...ts/create-edit-endpoint/create-edit-endpoint.component.ts
+4
-0
No files found.
src/portal/src/lib/components/create-edit-endpoint/create-edit-endpoint.component.ts
View file @
7ae96f7d
...
...
@@ -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
=
[];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment