Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
searchProjects.component.ts | ||
---|---|---|
93 | 93 |
} |
94 | 94 |
|
95 | 95 |
ngOnInit() { |
96 |
// this.route.data |
|
97 |
// .subscribe((data: { envSpecific: EnvProperties }) => { |
|
98 |
this.properties= properties; |
|
99 |
if (!this.simpleSearchLink) { |
|
100 |
this.simpleSearchLink = this.properties.searchLinkToProjects; |
|
101 |
} |
|
102 |
this.advancedSearchLink = this.properties.searchLinkToAdvancedProjects; |
|
103 |
this.searchUtils.baseUrl = (this.simpleView)?this.simpleSearchLink:this.advancedSearchLink; |
|
104 |
this.pagingLimit = properties.pagingLimit; |
|
105 |
this.isPiwikEnabled = properties.enablePiwikTrack; |
|
106 | 96 |
|
107 |
// }); |
|
108 |
//var errorCodes:ErrorCodes = new ErrorCodes(); |
|
97 |
this.properties= properties; |
|
98 |
if (!this.simpleSearchLink) { |
|
99 |
this.simpleSearchLink = this.properties.searchLinkToProjects; |
|
100 |
} |
|
101 |
this.advancedSearchLink = this.properties.searchLinkToAdvancedProjects; |
|
102 |
this.searchUtils.baseUrl = (this.simpleView)?this.simpleSearchLink:this.advancedSearchLink; |
|
103 |
this.pagingLimit = properties.pagingLimit; |
|
104 |
this.isPiwikEnabled = properties.enablePiwikTrack; |
|
105 |
|
|
109 | 106 |
this.searchUtils.status = this.errorCodes.LOADING; |
110 | 107 |
var firstLoad = true; |
111 | 108 |
|
Also available in: Unified diff
[Library|Trunk]
code clean up:
-remove app.* files from library
-remove unused imports, code, files (Old search pages for results, dataproviders, map search page, etc)
-remove Freeguard from modules
-unsubscribe all subscriptions
-Services: configuration, isvocabularies, user management: unsubscribe from app component or the component that uses them (clearSubscriptions())
-Fetchers: unsubscribe from the component that uses them (clearSubscriptions())