From 3479c0c206f11baa14aaa0a3b2edeb1baf621546 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 8 May 2023 11:50:11 -0500 Subject: [PATCH] Update language API calls --- src/app/language.service.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 + } ); } }