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/06/25 14:18:28 UTC

[incubator-dlab] 02/05: [DLAB-652]: disabled environment creation if user not assignet to any project

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

commit 6ba580a8c58183936d3e79793c9e2b6f969a6757
Author: Andriana Kovalyshyn <An...@epam.com>
AuthorDate: Tue Jun 25 17:08:52 2019 +0300

    [DLAB-652]: disabled environment creation if user not assignet to any project
---
 .../main/resources/webapp/src/app/resources/resources.component.html | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/services/self-service/src/main/resources/webapp/src/app/resources/resources.component.html b/services/self-service/src/main/resources/webapp/src/app/resources/resources.component.html
index be44a59..c4fdad8 100644
--- a/services/self-service/src/main/resources/webapp/src/app/resources/resources.component.html
+++ b/services/self-service/src/main/resources/webapp/src/app/resources/resources.component.html
@@ -19,7 +19,8 @@
 
 <div class="sub-nav base-retreat">
   <div>
-    <button mat-raised-button class="butt butt-create" (click)="createEnvironment()">
+    <button mat-raised-button class="butt butt-create" (click)="createEnvironment()"
+      [disabled]="!healthStatus?.projectAssigned">
       <i class="material-icons">add</i>Create new
     </button>
   </div>
@@ -41,4 +42,4 @@
   </div>
 </div>
 
-<resources-grid></resources-grid>
\ No newline at end of file
+<resources-grid></resources-grid>


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