Merge remote-tracking branch 'origin/main' into CST-4506_item_embargo

This commit is contained in:
Giuseppe Digilio
2021-12-22 15:28:58 +01:00
153 changed files with 16482 additions and 14487 deletions

View File

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