Skip to content
Snippets Groups Projects
Commit e56d3f71 authored by Kristof De Langhe's avatar Kristof De Langhe
Browse files

68346: Upload bitstream bugfix - properly refresh uploader component

parent 926f8e5a
Branches
No related merge requests found
......@@ -90,7 +90,7 @@ describe('UploadBistreamComponent', () => {
buildAuthHeader: () => authToken
});
const notificationsServiceStub = new NotificationsServiceStub();
const uploaderComponent = jasmine.createSpyObj('uploaderComponent', ['ngOnInit']);
const uploaderComponent = jasmine.createSpyObj('uploaderComponent', ['ngOnInit', 'ngAfterViewInit']);
const requestService = jasmine.createSpyObj('requestService', {
removeByHrefSubstring: {}
});
......
......@@ -154,6 +154,7 @@ export class UploadBitstreamComponent implements OnInit, OnDestroy {
// Re-initialize the uploader component to ensure the latest changes to the options are applied
if (this.uploaderComponent) {
this.uploaderComponent.ngOnInit();
this.uploaderComponent.ngAfterViewInit();
}
});
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment