This is an automated email from the ASF dual-hosted git repository.
dgnatyshyn pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/develop by this push:
new f75a6f0 [DLAB-1676]: Fixed bugs for set of rules libraries
installation (#683)
f75a6f0 is described below
commit f75a6f0275f77e83946cab8ff5c7e41a8049ba05
Author: Dmytro Gnatyshyn <[email protected]>
AuthorDate: Tue Mar 31 11:22:11 2020 +0300
[DLAB-1676]: Fixed bugs for set of rules libraries installation (#683)
---
.../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]