mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
fix SSR issue for notify dashboard
This commit is contained in:
@@ -18,6 +18,9 @@ import {
|
|||||||
import { AdminNotifyMessagesService } from './services/admin-notify-messages.service';
|
import { AdminNotifyMessagesService } from './services/admin-notify-messages.service';
|
||||||
|
|
||||||
|
|
||||||
|
const ENTRY_COMPONENTS = [
|
||||||
|
AdminNotifySearchResultComponent
|
||||||
|
];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [
|
imports: [
|
||||||
CommonModule,
|
CommonModule,
|
||||||
@@ -32,14 +35,19 @@ import { AdminNotifyMessagesService } from './services/admin-notify-messages.ser
|
|||||||
DatePipe
|
DatePipe
|
||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
|
...ENTRY_COMPONENTS,
|
||||||
AdminNotifyDashboardComponent,
|
AdminNotifyDashboardComponent,
|
||||||
AdminNotifyMetricsComponent,
|
AdminNotifyMetricsComponent,
|
||||||
AdminNotifyIncomingComponent,
|
AdminNotifyIncomingComponent,
|
||||||
AdminNotifyOutgoingComponent,
|
AdminNotifyOutgoingComponent,
|
||||||
AdminNotifySearchResultComponent,
|
|
||||||
AdminNotifyDetailModalComponent
|
AdminNotifyDetailModalComponent
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
export class AdminNotifyDashboardModule {
|
export class AdminNotifyDashboardModule {
|
||||||
|
static withEntryComponents() {
|
||||||
|
return {
|
||||||
|
ngModule: AdminNotifyDashboardModule,
|
||||||
|
providers: ENTRY_COMPONENTS.map((component) => ({provide: component}))
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user