Revision 58874
Added by Konstantina Galouni about 4 years ago
navigationBar.component.ts | ||
---|---|---|
50 | 50 |
|
51 | 51 |
ngOnInit() { |
52 | 52 |
this.activeRouteEnabled = false; |
53 |
this.sub = this.route.queryParams.subscribe(params => { |
|
53 |
//this.sub = this.route.queryParams.subscribe(params => { |
|
54 |
//console.log("params: ",params); |
|
54 | 55 |
this.initialize(); |
55 |
}); |
|
56 |
//});
|
|
56 | 57 |
} |
57 | 58 |
|
58 | 59 |
ngOnDestroy() { |
59 |
this.sub.unsubscribe(); |
|
60 |
if(this.sub) { |
|
61 |
this.sub.unsubscribe(); |
|
62 |
} |
|
60 | 63 |
} |
61 | 64 |
|
62 | 65 |
initialize() { |
Also available in: Unified diff
[Trunk | Library]:
1. src/assets/common-assets/common/custom.css: Add 'font-display: swap;' in '@font-face' css rules - improve performance.
2. dataProvider.component.html & organizations.component.html & project.component.html & resultLanding.component.html: Add check if 'indexUpdateDate' is initialized.
3. dataProvider.component.ts & organization.component.ts & project.component.ts & resultLanding.component.ts:
Initialize 'indexUpdateDate' and tabs counts only if "typeof document !== 'undefined'" (javascript is enabled) - improve performance.
4. resultLanding.component.ts: Get "provenanceActionVocabulary" and "altMetrics" only if "typeof document !== 'undefined'" (javascript is enabled) - improve performance.
5. organization.component.ts: [Bug fix] Get 'indexUpdateDate' from service (not properties) if available.
6. project.component.ts: [Bug fix] Call 'getProjectInfo()' only once (was called twice).
7. project.service.ts: [Bug fix] Add check for rels.rel.to.class=="hasParticipant" (when not array).
8. metrics.component.ts: Get metrics if "typeof document !== 'undefined'" (javascript is enabled) | Show charts only if user clicked on metrics badge | Do not set "width" for <i-frame> elements.
9. iframe.component.ts: Add case when only height is sent as input.
10. searchDataProviders.component.ts & searchOrganizations.component.ts: [Bug fix] Set "firstLoad" to false after getting results (was asking refine filters in paging too).
11. search-tab.component.ts: [Bug fix]: In method "getEntityName()" add cases when 'entityType "project"' and 'entityType "dataprovider"' and fix case when 'entityType == "result"'.
12. navigationBar.component.ts: [Bug fix] Do not initialize navbar inside route.queryParams subscription - !!! check it carefully when deployed in all portals !!! .