mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(environment): update wording when editing agent environment [EE-3081] (#7445)
* change wording when editing agent environment
This commit is contained in:
parent
02355acfa8
commit
6a4a353b92
4 changed files with 21 additions and 9 deletions
|
@ -105,7 +105,12 @@ func (handler *Handler) endpointUpdate(w http.ResponseWriter, r *http.Request) *
|
|||
}
|
||||
|
||||
if payload.URL != nil {
|
||||
endpoint.URL = *payload.URL
|
||||
if endpoint.Type == portainer.AgentOnDockerEnvironment ||
|
||||
endpoint.Type == portainer.AgentOnKubernetesEnvironment {
|
||||
endpoint.URL = normalizeAgentAddress(*payload.URL)
|
||||
} else {
|
||||
endpoint.URL = *payload.URL
|
||||
}
|
||||
}
|
||||
|
||||
if payload.PublicURL != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue