mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
Merge remote-tracking branch 'origin/main' into CST-4506_item_embargo
This commit is contained in:
@@ -69,6 +69,13 @@ const DECLARATIONS = [
|
||||
SubmissionSectionAccessesComponent
|
||||
];
|
||||
|
||||
const ENTRY_COMPONENTS = [
|
||||
SubmissionSectionUploadComponent,
|
||||
SubmissionSectionformComponent,
|
||||
SubmissionSectionLicenseComponent,
|
||||
SubmissionSectionCcLicensesComponent
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
@@ -94,4 +101,14 @@ const DECLARATIONS = [
|
||||
* This module handles all components that are necessary for the submission process
|
||||
*/
|
||||
export class SubmissionModule {
|
||||
/**
|
||||
* NOTE: this method allows to resolve issue with components that using a custom decorator
|
||||
* which are not loaded during SSR otherwise
|
||||
*/
|
||||
static withEntryComponents() {
|
||||
return {
|
||||
ngModule: SubmissionModule,
|
||||
providers: ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user