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

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

commit 1ecfff9f622c8aaa7d859bdf9a024da6771eef59
Author: Dmytro Gnatyshyn <[email protected]>
AuthorDate: Mon Mar 30 17:56:18 2020 +0300

    [DLAB-1676]: Fixed bugs for set of rules libraries installation
---
 .../install-libraries/install-libraries.component.ts           | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
index 839bc46..2f2d733 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/resources/exploratory/install-libraries/install-libraries.component.ts
@@ -190,7 +190,6 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
     this.model.selectedLibs.push({ group: this.group, name: item.name, 
version: item.version });
     this.query = '';
     this.libSearch.setValue('');
-
     this.filteredList = null;
   }
 
@@ -223,8 +222,8 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
   }
 
   public isInstallingInProgress(): void {
-    const isInstallingNow = this.notebookLibs.some(lib => 
lib.filteredStatus.some(status => status.status === 'installing'));
-      if (isInstallingNow) {
+    this.installingInProgress = this.notebookLibs.some(lib => 
lib.filteredStatus.some(status => status.status === 'installing'));
+      if (this.installingInProgress) {
         clearTimeout(this.loadLibsTimer);
         this.loadLibsTimer = window.setTimeout(() => 
this.getInstalledLibrariesList(), 10000);
       }
@@ -309,11 +308,9 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
   }
 
   private selectorsReset(): void {
-    if( this.destination.name === this.getResourcesList()[0].name) {
-      return;
-    }
     this.destination = this.getResourcesList()[0];
     this.uploadLibGroups();
+    this.getInstalledLibsByResource();
   }
 
   private resetDialog(): void {
@@ -325,7 +322,6 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
     this.uploading = false;
     this.model.selectedLibs = [];
     this.filteredList = null;
-    // this.destination = null;
     this.groupsList = [];
 
     clearTimeout(this.clear);


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

Reply via email to