This is an automated email from the ASF dual-hosted git repository. hshpak pushed a commit to branch fix/DATALAB-2842/button-visibility-of-edge-node-recreation in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit 6ddaa987e59afe0465d060133f44861b6b720054 Author: Hennadii_Shpak <[email protected]> AuthorDate: Fri Jul 8 12:14:37 2022 +0300 fixed modal window --- .../app/administration/project/project-list/project-list.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/project/project-list/project-list.component.ts b/services/self-service/src/main/resources/webapp/src/app/administration/project/project-list/project-list.component.ts index 85c4e80ba..059758be3 100644 --- a/services/self-service/src/main/resources/webapp/src/app/administration/project/project-list/project-list.component.ts +++ b/services/self-service/src/main/resources/webapp/src/app/administration/project/project-list/project-list.component.ts @@ -125,7 +125,8 @@ export class ProjectListComponent implements OnInit, OnDestroy { return endpoint.status === EndpointStatus.running || endpoint.status === EndpointStatus.stopped; } if (action === 'recreate') { - return endpoint.status === EndpointStatus.terminated || endpoint.status === EndpointStatus.failed; + const edgeNodeStatus = endpoint.status === EndpointStatus.terminated || endpoint.status === EndpointStatus.failed; + return edgeNodeStatus && endpoint.endpointStatus === 'ACTIVE'; } }); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
