Skip to content

Commit de56ad4

Browse files
committed
[DSC-1400] Fix issue with user's suggestion notifications
1 parent be89bc6 commit de56ad4

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/app/openaire/openaire.module.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ const MODULES = [
5151
CoreModule.forRoot(),
5252
StoreModule.forFeature('openaire', openaireReducers, storeModuleConfig as StoreConfig<OpenaireState, Action>),
5353
EffectsModule.forFeature(openaireEffects),
54-
TranslateModule
54+
TranslateModule,
55+
SearchModule
5556
];
5657

5758
const COMPONENTS = [
@@ -86,7 +87,6 @@ const PROVIDERS = [
8687
@NgModule({
8788
imports: [
8889
...MODULES,
89-
SearchModule
9090
],
9191
declarations: [
9292
...COMPONENTS,
@@ -96,9 +96,6 @@ const PROVIDERS = [
9696
providers: [
9797
...PROVIDERS
9898
],
99-
entryComponents: [
100-
...ENTRY_COMPONENTS
101-
],
10299
exports: [
103100
...COMPONENTS,
104101
...DIRECTIVES

src/app/openaire/reciter-suggestions/suggestions-notification/suggestions-notification.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export class SuggestionsNotificationComponent implements OnInit {
2929

3030
ngOnInit() {
3131
this.suggestionsRD$ = this.reciterSuggestionStateService.getCurrentUserSuggestionTargets();
32+
this.reciterSuggestionStateService.dispatchMarkUserSuggestionsAsVisitedAction();
3233
}
3334

3435
/**

src/app/root.module.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import { BreadcrumbTooltipPipe } from './breadcrumbs/breadcrumb/breadcrumb-toolt
4646
import {
4747
TruncateBreadcrumbItemCharactersPipe
4848
} from './breadcrumbs/breadcrumb/truncate-breadcrumb-item-characters.pipe';
49+
import { OpenaireModule } from './openaire/openaire.module';
4950

5051
const IMPORTS = [
5152
CommonModule,
@@ -55,7 +56,8 @@ const IMPORTS = [
5556
NgbModule,
5657
ExploreModule,
5758
FooterModule,
58-
SocialModule
59+
SocialModule,
60+
OpenaireModule
5961
];
6062

6163
const PROVIDERS = [

0 commit comments

Comments
 (0)