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

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

commit bfdd4047c444cd4cbe293a661c4446c824c0b99d
Author: Andriana Kovalyshyn <[email protected]>
AuthorDate: Mon Nov 25 16:46:06 2019 +0200

    [DLAB-1279]: added original notebook as resource for checks on creation 
clusters
---
 .../src/app/resources/resources-grid/resources-grid.component.ts    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
index 33ca68d..720c451 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/resources-grid/resources-grid.component.ts
@@ -118,9 +118,7 @@ export class ResourcesGridComponent implements OnInit {
   }
 
   public showActiveInstances(): void {
-
     this.filterForm = this.loadUserPreferences(this.filterActiveInstances());
-
     this.applyFilter_btnClick(this.filterForm);
     this.buildGrid();
   }
@@ -168,8 +166,10 @@ export class ResourcesGridComponent implements OnInit {
   }
 
   public exploratoryAction(data, action: string) {
+    const resource = this.getResourceByName(data.name);
+
     if (action === 'deploy') {
-      this.dialog.open(ComputationalResourceCreateDialogComponent, { data: { 
notebook: data, full_list: this.environments }, panelClass: 'modal-xxl' })
+      this.dialog.open(ComputationalResourceCreateDialogComponent, { data: { 
notebook: resource, full_list: this.environments }, panelClass: 'modal-xxl' })
         .afterClosed().subscribe(() => this.buildGrid());
     } else if (action === 'run') {
       this.userResourceService


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

Reply via email to