You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by dg...@apache.org on 2021/02/03 14:48:07 UTC

[incubator-datalab] 02/02: small fix

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

dgnatyshyn pushed a commit to branch DATALAB-2271
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git

commit d439799f8c20e4f30868ee6bb46eeece3bfd13fa
Author: Dmytro_Gnatyshyn <di...@ukr.net>
AuthorDate: Wed Feb 3 16:47:44 2021 +0200

    small fix
---
 .../exploratory/install-libraries/install-libraries.component.ts | 9 +++++++--
 1 file changed, 7 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 f79487b..4867389 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
@@ -131,13 +131,17 @@ export class InstallLibrariesComponent implements OnInit, OnDestroy {
       )
       .subscribe(
         response => {
-          this.libsUploadingStatus(response);
+          const groups = [].concat(response);
+
+          // Remove when will be removed pip2 from Backend
+          const groupWithoutPip2 = groups.filter(group => group !== 'pip2');
+
+          this.libsUploadingStatus(groupWithoutPip2);
           this.changeDetector.detectChanges();
 
           this.resource_select && this.resource_select.setDefaultOptions(
             this.getResourcesList(),
             this.destination.title, 'destination', 'title', 'array');
-
           this.group_select && this.group_select.setDefaultOptions(
             this.groupsList, 'Select group', 'group_lib', null, 'list', this.groupsListMap);
         },
@@ -366,6 +370,7 @@ export class InstallLibrariesComponent implements OnInit, OnDestroy {
 
   private libsUploadingStatus(groupsList): void {
     if (groupsList.length) {
+
       this.groupsList = this.filterGroups(groupsList);
       this.libs_uploaded = true;
       this.uploading = false;


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