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

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


The following commit(s) were added to refs/heads/feature/projects by this push:
     new c58af0b  [DLAB-805]: added extra check if clusters creation are not 
allowed
c58af0b is described below

commit c58af0b987a6711d8c1d483b480f35d4331c8873
Author: Andriana Kovalyshyn <andriana_kovalys...@epam.com>
AuthorDate: Thu Jun 20 11:39:13 2019 +0300

    [DLAB-805]: added extra check if clusters creation are not allowed
---
 .../computational-resource-create-dialog.component.ts         | 11 +++++++----
 .../resources/resources-grid/resources-grid.component.html    |  4 ++--
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
index 85ade39..788039b 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.ts
@@ -234,10 +234,13 @@ export class ComputationalResourceCreateDialogComponent 
implements OnInit {
       clusterTypes => {
         this.clusterTypes = clusterTypes;
         this.selectedImage = clusterTypes[0];
-        this.getComputationalResourceLimits();
-        this.filterShapes();
-        
this.resourceForm.get('template_name').setValue(this.selectedImage.template_name)
-      });
+
+        if (this.selectedImage) {
+          this.getComputationalResourceLimits();
+          this.filterShapes(); 
+          
this.resourceForm.get('template_name').setValue(this.selectedImage.template_name);
+        }
+      }, error => {});
   }
 
   private filterShapes(): void {
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 80b35f0..6940685 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
@@ -151,12 +151,12 @@
             <i class="material-icons">developer_board</i>
             <span>Manage libraries</span>
           </li>
-          <!-- <li>
+          <li>
             <a target="_blank" [routerLink]="['/terminal', env.ip]" 
class="navigate">
               <i class="material-icons">laptop</i>
               <span>Open terminal</span>
             </a>
-          </li> -->
+          </li>
         </ul>
       </bubble-up>
     </td>


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

Reply via email to