This is an automated email from the ASF dual-hosted git repository.
hshpak pushed a commit to branch
feat/DATALAB-2874/add-notification-pop-up-window-appears
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
The following commit(s) were added to
refs/heads/feat/DATALAB-2874/add-notification-pop-up-window-appears by this
push:
new c6fdfe6c4 fixed progress bar
c6fdfe6c4 is described below
commit c6fdfe6c4fed8bf80dbf54347f76c03a559d88fa
Author: Hennadii_Shpak <[email protected]>
AuthorDate: Thu Jul 7 15:59:29 2022 +0300
fixed progress bar
---
.../resources/webapp/src/app/resources/images/images.component.ts | 5 ++++-
.../src/app/shared/modal-dialog/share-image/share-image.component.ts | 5 ++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git
a/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.ts
b/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.ts
index 1ec8e3f2d..afb464fa3 100644
---
a/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.ts
+++
b/services/self-service/src/main/resources/webapp/src/app/resources/images/images.component.ts
@@ -29,6 +29,7 @@ import { MatDialog } from '@angular/material/dialog';
import { ShareImageComponent } from
'../../shared/modal-dialog/share-image/share-image.component';
import { Observable } from 'rxjs';
import { ImagesService } from './images.service';
+import { ProgressBarService } from '../../core/services/progress-bar.service';
@Component({
selector: 'datalab-images',
@@ -61,7 +62,8 @@ export class ImagesComponent implements OnInit {
public toastr: ToastrService,
private userImagesPageService: UserImagesPageService,
private dialog: MatDialog,
- private imagesService: ImagesService
+ private imagesService: ImagesService,
+ private progressBarService: ProgressBarService
) { }
ngOnInit(): void {
@@ -114,6 +116,7 @@ export class ImagesComponent implements OnInit {
if (this.imagesService.projectList) {
this.initImageTable(this.imagesService.projectList);
}
+ this.progressBarService.stopProgressBar();
});
}
diff --git
a/services/self-service/src/main/resources/webapp/src/app/shared/modal-dialog/share-image/share-image.component.ts
b/services/self-service/src/main/resources/webapp/src/app/shared/modal-dialog/share-image/share-image.component.ts
index a62f0db3a..8afa9a088 100644
---
a/services/self-service/src/main/resources/webapp/src/app/shared/modal-dialog/share-image/share-image.component.ts
+++
b/services/self-service/src/main/resources/webapp/src/app/shared/modal-dialog/share-image/share-image.component.ts
@@ -43,9 +43,8 @@ export class ShareImageComponent {
onShare() {
this.dialogRef.close();
- this.imagesService.shareImageAllUsers(this.data.image).pipe(
- tap(response => this.imagesService.projectList = response)
- ).subscribe(
+ this.imagesService.shareImageAllUsers(this.data.image)
+ .subscribe(
() => this.toastr.success(Toaster_Message.successShare, 'Success!')
);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]