diff --git a/app/portainer/components/endpointSecurity/porEndpointSecurity.html b/app/portainer/components/endpointSecurity/porEndpointSecurity.html index b43630606..841cd4841 100644 --- a/app/portainer/components/endpointSecurity/porEndpointSecurity.html +++ b/app/portainer/components/endpointSecurity/porEndpointSecurity.html @@ -2,11 +2,13 @@
- - +
@@ -75,10 +77,10 @@
- + {{ $ctrl.formData.TLSCACert.name }} - - + +
@@ -90,10 +92,10 @@
- + {{ $ctrl.formData.TLSCert.name }} - - + +
@@ -103,10 +105,10 @@
- + {{ $ctrl.formData.TLSKey.name }} - - + +
diff --git a/app/portainer/components/endpointSecurity/porEndpointSecurityController.js b/app/portainer/components/endpointSecurity/porEndpointSecurityController.js index 1b6bdc0f4..e9c220e44 100644 --- a/app/portainer/components/endpointSecurity/porEndpointSecurityController.js +++ b/app/portainer/components/endpointSecurity/porEndpointSecurityController.js @@ -1,7 +1,14 @@ angular.module('portainer.app').controller('porEndpointSecurityController', [ - function () { + '$scope', + function ($scope) { var ctrl = this; + ctrl.onToggleTLS = function (newValue) { + $scope.$evalAsync(() => { + ctrl.formData.TLS = newValue; + }); + }; + this.$onInit = $onInit; function $onInit() { if (ctrl.endpoint) { diff --git a/app/portainer/views/endpoints/edit/endpoint.html b/app/portainer/views/endpoints/edit/endpoint.html index 959d7d5e2..f1e348288 100644 --- a/app/portainer/views/endpoints/edit/endpoint.html +++ b/app/portainer/views/endpoints/edit/endpoint.html @@ -4,8 +4,8 @@
-

- +

+ This Edge environment is associated to an Edge environment {{ state.kubernetesEndpoint ? '(Kubernetes)' : '(Docker)' }}.

@@ -36,8 +36,8 @@

Deploy an agent
-

- +

+ Refer to the platform related command below to deploy the Edge agent in your remote cluster.

@@ -55,8 +55,8 @@

Join token
-

- +

+ For those pre-staging the edge agent, use the following join token to associate the Edge agent with this environment.

You can read more about pre-staging in the userguide available here.

@@ -64,9 +64,15 @@ {{ endpoint.EdgeKey }} -
- Copy token - +
+ + + Copy token + +
@@ -76,15 +82,15 @@
- - + + You should configure the features available in this Kubernetes environment in the Kubernetes configuration view. -
+
diff --git a/app/react/components/TagSelector/TagSelector.tsx b/app/react/components/TagSelector/TagSelector.tsx index 50b52e61a..bfa13983f 100644 --- a/app/react/components/TagSelector/TagSelector.tsx +++ b/app/react/components/TagSelector/TagSelector.tsx @@ -2,6 +2,7 @@ import clsx from 'clsx'; import _ from 'lodash'; import { TagId } from '@/portainer/tags/types'; +import { Icon } from '@/react/components/Icon'; import { useCreateTagMutation, useTags } from '@/portainer/tags/queries'; import { Creatable, Select } from '@@/form-components/ReactSelect'; @@ -63,15 +64,17 @@ export function TagSelector({ value, allowCreate = false, onChange }: Props) {