Project

General

Profile

« Previous | Next » 

Revision 59073

[Trunk | Library]:
1. curator.service.ts: Use "useLongCache" property for curators.
2. helper.service.ts: Use "useLongCache" property for helptexts.
3. env-properties.ts: Add "useLongCache" property.

View differences:

curator.service.ts
13 13

  
14 14
  public getCurators(properties: EnvProperties, emails: string): Observable<Curator[]> {
15 15
    let url: string = properties.adminToolsAPIURL + '/curator?emails='+emails;
16
    return this.http.get<Curator[]>((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);
16
    return this.http.get<Curator[]>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);
17 17
  }
18 18

  
19 19
  public updateCurator(properties: EnvProperties, curator: Curator) {
......
23 23

  
24 24
  public getCurator(properties: EnvProperties, curatorId: string): Observable<Curator> {
25 25
    let url: string = properties.adminToolsAPIURL + 'curator/'+curatorId;
26
    return this.http.get<Curator>((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);
26
    return this.http.get<Curator>((properties.useLongCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url);
27 27
  }
28 28

  
29 29
}

Also available in: Unified diff