mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
68346: Set upload url after bundle create
This commit is contained in:
@@ -130,6 +130,7 @@ export class UploadBitstreamComponent implements OnInit, OnDestroy {
|
||||
this.translate.instant(this.NOTIFICATIONS_PREFIX + 'bundle.created.title'),
|
||||
this.translate.instant(this.NOTIFICATIONS_PREFIX + 'bundle.created.content')
|
||||
);
|
||||
this.setUploadUrl();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -151,7 +152,9 @@ export class UploadBitstreamComponent implements OnInit, OnDestroy {
|
||||
this.uploadFilesOptions.authToken = this.authService.buildAuthHeader();
|
||||
}
|
||||
// Re-initialize the uploader component to ensure the latest changes to the options are applied
|
||||
this.uploaderComponent.ngOnInit();
|
||||
if (this.uploaderComponent) {
|
||||
this.uploaderComponent.ngOnInit();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user