mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge pull request #642 from atmire/Upload-bitstream-bugfix
Upload bitstream bug-fix
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user