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:07 UTC

[incubator-dlab] 02/02: [DLAB-1371]: fixed issue with permission info message appearing

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 102ad161d04173a8b0e06698fd8f7ab4996e531f
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Mon Dec 9 12:56:13 2019 +0200

    [DLAB-1371]: fixed issue with permission info message appearing
---
 .../computational-resource-create-dialog.component.html             | 6 +++---
 .../computational-resource-create-dialog.component.ts               | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html
index 22b13ab..457b4ed 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/computational/computational-resource-create-dialog/computational-resource-create-dialog.component.html
@@ -79,7 +79,7 @@
                                             && resourceForm?.controls['cluster_alias_name'].dirty
                                             && !resourceForm?.controls['cluster_alias_name'].hasError('duplication')">
                   Cluster name cannot be longer than {{DICTIONARY.max_cluster_name_length}} characters
-                    and can only contain letters, numbers, hyphens and '_' but can not end with special
+                  and can only contain letters, numbers, hyphens and '_' but can not end with special
                   characters
                 </span>
               </div>
@@ -231,8 +231,8 @@
 
     </div>
     <ng-template #placeholder>
-      <div *ngIf="!loading" class="info message">Computational resource creations are not available.<br>Please, check
-        your permissions.</div>
+      <div *ngIf="!loading && !clusterTypes?.length" class="info message">
+        Computational resource creations are not available.<br>Please, check your permissions.</div>
       <div *ngIf="loading" class="info message">
         Computational resource data is processing
         <mat-progress-bar mode="indeterminate"></mat-progress-bar>
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 fea565f..7f29002 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
@@ -240,7 +240,6 @@ export class ComputationalResourceCreateDialogComponent implements OnInit {
         this.selectedImage = clusterTypes[0];
 
         if (this.selectedImage) {
-          this.loading = false;
           this._ref.detectChanges();
 
           this.filterShapes();
@@ -248,6 +247,7 @@ export class ComputationalResourceCreateDialogComponent implements OnInit {
           this.getComputationalResourceLimits();
         }
 
+        this.loading = false;
       }, () => this.loading = false);
   }
 


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