From 15982bd5949f5dcfcd1f87305b4e4646e86a0a21 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Mon, 10 Jul 2023 18:43:38 +0300 Subject: [PATCH] fix(environments): enable manage access view [EE-5695] fix [EE-5695] --- .../views/endpoints/access/endpointAccessController.js | 2 +- app/react/portainer/environments/ListView/columns/actions.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/portainer/views/endpoints/access/endpointAccessController.js b/app/portainer/views/endpoints/access/endpointAccessController.js index 0cdbbe70b..dffb7301d 100644 --- a/app/portainer/views/endpoints/access/endpointAccessController.js +++ b/app/portainer/views/endpoints/access/endpointAccessController.js @@ -21,7 +21,7 @@ class EndpointAccessController { async $onInit() { this.state = { actionInProgress: false }; try { - this.endpoint = await this.EndpointService.endpoint(this.$transition$.params().id); + this.endpoint = await this.EndpointService.endpoint(this.$transition$.params().endpointId); this.group = await this.GroupService.group(this.endpoint.GroupId); } catch (err) { this.Notifications.error('Failure', err, 'Unable to retrieve environment information'); diff --git a/app/react/portainer/environments/ListView/columns/actions.tsx b/app/react/portainer/environments/ListView/columns/actions.tsx index a52bad72e..720a04108 100644 --- a/app/react/portainer/environments/ListView/columns/actions.tsx +++ b/app/react/portainer/environments/ListView/columns/actions.tsx @@ -30,7 +30,7 @@ function Cell({ as={Link} props={{ to: 'portainer.endpoints.endpoint.access', - params: { id: environment.Id }, + params: { endpointId: environment.Id }, }} color="link" icon={Users}