You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2020/06/18 06:31:38 UTC
[incubator-dlab] 02/02: [DLAB-1877]: Fixed set of tasks Environment
management
This is an automated email from the ASF dual-hosted git repository.
dgnatyshyn pushed a commit to branch DLAB-1877
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit 6ce68edfe565bc84f37995cc5dafb33e81f1648f
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Thu Jun 18 09:29:57 2020 +0300
[DLAB-1877]: Fixed set of tasks Environment management
---
.../management-grid/management-grid.component.html | 23 ++++++++++++----------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.html b/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.html
index eb3581e..64b6e91 100644
--- a/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.html
+++ b/services/self-service/src/main/resources/webapp/src/app/administration/management/management-grid/management-grid.component.html
@@ -144,21 +144,24 @@
<div *ngIf="element.resources?.length">
<div *ngFor="let resource of element.resources" class="resource-wrap">
<div class="resource-name">
- <a class="detailed-link">
+ <a>
{{ resource.computational_name }}
</a>
</div>
<span ngClass="{{resource.status || ''}}" class="resource-status">{{ resource.status }}</span>
<div class="resource-actions">
- <a class="start-stop-action" *ngIf="resource.image === 'docker.dlab-dataengine'">
- <i class="material-icons" (click)="toggleResourceAction(element, 'stop', resource)"
- [ngClass]="{'not-allowed' : resource.status !== 'running' }">pause_circle_outline</i>
- </a>
-
- <a class="remove_butt" (click)="toggleResourceAction(element, 'terminate', resource)"
- [ngClass]="{ 'disabled' : element.status !== 'running' || resource.status !== 'running' && resource.status !== 'stopped' }">
- <i class="material-icons">highlight_off</i>
- </a>
+ <span class="not-allow">
+ <a class="start-stop-action" *ngIf="resource.image === 'docker.dlab-dataengine'">
+ <i class="material-icons" (click)="toggleResourceAction(element, 'stop', resource)"
+ [ngClass]="{'not-allowed' : resource.status !== 'running' || selected?.length }">pause_circle_outline</i>
+ </a>
+ </span>
+ <span class="not-allow">
+ <a class="remove_butt" (click)="toggleResourceAction(element, 'terminate', resource)"
+ [ngClass]="{ 'disabled' : element.status !== 'running' || (resource.status !== 'running' && resource.status !== 'stopped') || selected?.length }">
+ <i class="material-icons">highlight_off</i>
+ </a>
+ </span>
</div>
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org