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

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

commit 3b5b9fd84da7cad7fda0adcf7a70877a0fce71ab
Author: Dmytro_Gnatyshyn <di1...@ukr.net>
AuthorDate: Fri Jul 24 16:03:45 2020 +0300

    [DLAB-1960]: Small fix
---
 .../exploratory/install-libraries/install-libraries.component.ts    | 6 ++++--
 1 file changed, 4 insertions(+), 2 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 ae38165..3e977f8 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
@@ -96,7 +96,6 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
 
   ngOnInit() {
     this.open(this.data);
-    this.libSearch.disable();
     this.libSearch.valueChanges
       .pipe(
       debounceTime(1000),
@@ -167,8 +166,10 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
 
   public onUpdate($event) {
     if ($event.model.type === 'group_lib') {
-      this.libSearch.enable();
       this.group = $event.model.value;
+      if (this.group) {
+        this.libSearch.enable();
+      }
       this.lib = {name: '', version: ''};
     } else if ($event.model.type === 'destination') {
       this.resetDialog();
@@ -391,6 +392,7 @@ export class InstallLibrariesComponent implements OnInit, 
OnDestroy {
     this.destination = this.getResourcesList()[0];
     this.uploadLibGroups();
     this.getInstalledLibsByResource();
+    this.libSearch.disable();
   }
 
   private resetDialog(): void {


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

Reply via email to