Revision 59816
Added by Argiro Kokogiannaki over 3 years ago
searchDataProviders.component.ts | ||
---|---|---|
103 | 103 |
if(this.showSwitchSearchLink == null){ |
104 | 104 |
this.showSwitchSearchLink = (this.type == "all"); |
105 | 105 |
} |
106 |
// this.route.data |
|
107 |
// .subscribe((data: { envSpecific: EnvProperties }) => { |
|
108 |
this.properties= properties; |
|
109 |
if (!this.simpleSearchLink) { |
|
110 |
this.simpleSearchLink = this.properties.searchLinkToDataProviders; |
|
111 |
} this.advancedSearchLink = this.properties.searchLinkToAdvancedDataProviders; |
|
112 |
this.searchUtils.baseUrl = (this.simpleView)?this.simpleSearchLink:this.advancedSearchLink; |
|
113 |
this.pagingLimit = properties.pagingLimit; |
|
114 |
this.isPiwikEnabled = properties.enablePiwikTrack; |
|
106 |
this.properties= properties; |
|
107 |
if (!this.simpleSearchLink) { |
|
108 |
this.simpleSearchLink = this.properties.searchLinkToDataProviders; |
|
109 |
} this.advancedSearchLink = this.properties.searchLinkToAdvancedDataProviders; |
|
110 |
this.searchUtils.baseUrl = (this.simpleView)?this.simpleSearchLink:this.advancedSearchLink; |
|
111 |
this.pagingLimit = properties.pagingLimit; |
|
112 |
this.isPiwikEnabled = properties.enablePiwikTrack; |
|
115 | 113 |
|
116 |
// }); |
|
117 |
|
|
118 | 114 |
let firstLoad = true; |
119 | 115 |
this.filters = DatasourcesHelperClass.createFilters(this.type); |
120 | 116 |
this.subs.push(this.route.queryParams.subscribe(params => { |
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())