You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by an...@apache.org on 2019/12/09 10:56:06 UTC

[incubator-dlab] 01/02: [DLAB-1372]: prevent actions for superset and jupyter lab according statuses

This is an automated email from the ASF dual-hosted git repository.

ankovalyshyn pushed a commit to branch DLAB-1372
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git

commit 8950437518a466e68c197edf19365c2e958658dd
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Mon Dec 9 12:31:30 2019 +0200

    [DLAB-1372]: prevent actions for superset and jupyter lab according statuses
---
 .../src/app/resources/resources-grid/resources-grid.component.html    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.html
index e3b5fa5..78e3977 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.html
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.html
@@ -144,7 +144,9 @@
 
           <td class="settings">
             <span #settings (click)="actions.toggle($event, settings)" class="actions"
-              [ngClass]="{ 'disabled': element.status.toLowerCase() === 'creating' }">
+              [ngClass]="{ 'disabled': element.status.toLowerCase() === 'creating'
+              || (element.image === 'docker.dlab-superset' && element.status !== 'running' && element.status !== 'stopped')
+              || (element.image === 'docker.dlab-jupyterlab' && element.status !== 'running' && element.status !== 'stopped') }">
             </span>
 
             <bubble-up #actions class="list-menu" position="bottom-left" alternative="top-left">


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org