Skip to content
Snippets Groups Projects
Unverified Commit 49e7b4b4 authored by Tim Donohue's avatar Tim Donohue Committed by GitHub
Browse files

Merge pull request #642 from atmire/Upload-bitstream-bugfix

Upload bitstream bug-fix
parents d932928a e56d3f71
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