diff --git a/src/app/language.service.ts b/src/app/language.service.ts index 7147776..34585b4 100644 --- a/src/app/language.service.ts +++ b/src/app/language.service.ts @@ -22,7 +22,10 @@ export class LanguageService { public zgoLanguage: string = ''; + private session: string|null = ''; + constructor(private http:HttpClient) { + this.session = localStorage.getItem('s4z_token'); } getViewElements ( viewName:string ) { @@ -45,10 +48,13 @@ export class LanguageService { // // Get component's text data from language database // + const params = new HttpParams().append('session', this.session!); return this.http.get(this.baseURL + '/?lang=' + this.zgoLanguage + '&component=' + viewName - ,{ headers : reqHeaders } + ,{ headers : reqHeaders + , params: params + } ); } }