68346: Set upload url after bundle create

This commit is contained in:
Kristof De Langhe
2020-04-01 14:51:24 +02:00
parent b1b8c05150
commit 27f17b35f9

View File

@@ -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.title'),
this.translate.instant(this.NOTIFICATIONS_PREFIX + 'bundle.created.content') 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(); this.uploadFilesOptions.authToken = this.authService.buildAuthHeader();
} }
// Re-initialize the uploader component to ensure the latest changes to the options are applied // Re-initialize the uploader component to ensure the latest changes to the options are applied
this.uploaderComponent.ngOnInit(); if (this.uploaderComponent) {
this.uploaderComponent.ngOnInit();
}
}); });
} }