You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by hs...@apache.org on 2022/07/08 09:14:49 UTC

[incubator-datalab] 01/01: fixed modal window

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 <bo...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org