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

hshpak pushed a commit to branch fix/DATALAB-2939/frontend_side
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit 4c1fb7aa452197ff2f24d5e87b2aeb4dc7d781b4
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Wed Jul 27 12:17:17 2022 +0300

    fixed select of images template
---
 .../exploratory/create-environment/create-environment.component.html    | 2 +-
 .../exploratory/create-environment/create-environment.component.ts      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
index b39d95527..6f133a0cd 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.html
@@ -126,7 +126,7 @@
           </div>
         </div>
 
-        <div class="control-group" *ngIf="images && images.length > 0">
+        <div class="control-group" *ngIf="images?.length">
           <label class="label">Select image</label>
           <div class="control selector-wrapper">
             <mat-form-field>
diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
index debc6515c..e946ed14f 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/create-environment/create-environment.component.ts
@@ -328,7 +328,7 @@ export class ExploratoryEnvironmentCreateComponent 
implements OnInit {
       this.createExploratoryForm.controls['endpoint'].value)
       .subscribe(
         (res: any) => {
-          this.images = res.filter(el => el.status === 'CREATED');
+          this.images = res.filter(el => el.status === 'ACTIVE');
 
           if (this.selectedCloud === 'gcp' && this.currentTemplate.image === 
'docker.datalab-deeplearning') {
             this.currentTemplate.exploratory_environment_images = 
this.currentTemplate.exploratory_environment_images.map(image => {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to