Revision 59074
Added by Konstantina Galouni almost 4 years ago
resultLanding.module.ts | ||
---|---|---|
10 | 10 |
import {IFrameModule} from '../../utils/iframe.module'; |
11 | 11 |
import {AltMetricsModule} from '../../utils/altmetrics.module'; |
12 | 12 |
import {PagingModule} from '../../utils/paging.module'; |
13 |
import {ConfigurationServiceModule} from '../../utils/configuration/configurationService.module'; |
|
14 | 13 |
|
15 | 14 |
import {FreeGuard} from '../../login/freeGuard.guard'; |
16 | 15 |
import {IsRouteEnabled} from '../../error/isRouteEnabled.guard'; |
... | ... | |
36 | 35 |
imports: [ |
37 | 36 |
CommonModule, FormsModule, LandingModule, SharedModule, RouterModule, |
38 | 37 |
CiteThisModule, PagingModule, IFrameModule, |
39 |
MetricsModule, AltMetricsModule, ConfigurationServiceModule, Schema2jsonldModule, SEOServiceModule,
|
|
38 |
MetricsModule, AltMetricsModule, Schema2jsonldModule, SEOServiceModule, |
|
40 | 39 |
DeletedByInferenceModule, ShowAuthorsModule, HelperModule, ResultLandingUtilsModule, AlertModalModule, AnnotationModule, LandingHeaderModule, NoLoadPaging, ResultPreviewModule, FeedbackModule, TabsModule, LoadingModule |
41 | 40 |
], |
42 | 41 |
declarations: [ |
Also available in: Unified diff
[Trunk | Library]:
1. configuration.service.ts: Use "useLongCache" property for communityFull | Add BehaviorSubject for communityFull | Add filtering methods to check if route is enabled from communityFull info.
2. isRouteEnabled.guard.ts: Get properties from environment (no service needed) | Foreach route do not query API but check if enabled by communityFull info (BehaviorSubject).
3. search.component.ts & searchAll.component.ts & entitiesSelection.component.ts & quick-selections.component.ts & navigationBar.component.ts & bottom.component.ts:
Get communityFull info from state (call configurationService.communityInformationState) | Add subscriptions in array to unsubscribe in ngOnDestroy.
quick-selections.component.ts: Add "uk-disabled" class when needed in <form> elements.
4. resultLanding.module.ts & navigationBar.module.ts & bottom.module.ts & entitiesSelection.module.ts & quick-selections.module.ts:
Remove ConfigurationService from providers (singleton service, providedIn: 'root').