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

Upload bitstream bug-fix
This commit is contained in:
Tim Donohue
2020-04-03 15:01:38 -05:00
committed by GitHub
2 changed files with 2 additions and 1 deletions

View File

@@ -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: {}
});

View File

@@ -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();
}
});
}