New logic for language API call for pmtservice
This commit is contained in:
parent
2cd9ded783
commit
a05b76ebed
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,7 @@ export class LanguageService {
|
||||||
private mainURL = ConfigData.Be_URL + 'getmainlang';
|
private mainURL = ConfigData.Be_URL + 'getmainlang';
|
||||||
private scanURL = ConfigData.Be_URL + 'getscanlang';
|
private scanURL = ConfigData.Be_URL + 'getscanlang';
|
||||||
private invoiceURL = ConfigData.Be_URL + 'getinvoicelang';
|
private invoiceURL = ConfigData.Be_URL + 'getinvoicelang';
|
||||||
|
private pmtservURL = ConfigData.Be_URL + 'getpmtservicelang';
|
||||||
|
|
||||||
public zgoLanguage: string = '';
|
public zgoLanguage: string = '';
|
||||||
|
|
||||||
|
@ -61,6 +62,8 @@ export class LanguageService {
|
||||||
return this.http.get<LanguageData>(this.scanURL + '/?lang=' + this.zgoLanguage, {headers: reqHeaders, params: params});
|
return this.http.get<LanguageData>(this.scanURL + '/?lang=' + this.zgoLanguage, {headers: reqHeaders, params: params});
|
||||||
} else if (viewName === 'invoice') {
|
} else if (viewName === 'invoice') {
|
||||||
return this.http.get<LanguageData>(this.invoiceURL + '/?lang=' + this.zgoLanguage, {headers: reqHeaders, params: params});
|
return this.http.get<LanguageData>(this.invoiceURL + '/?lang=' + this.zgoLanguage, {headers: reqHeaders, params: params});
|
||||||
|
} else if (viewName === 'pmtservice') {
|
||||||
|
return this.http.get<LanguageData>(this.pmtservURL + '/?lang=' + this.zgoLanguage, {headers: reqHeaders, params: params});
|
||||||
} else {
|
} else {
|
||||||
return this.http.get<LanguageData>(this.baseURL +
|
return this.http.get<LanguageData>(this.baseURL +
|
||||||
'/?lang=' + this.zgoLanguage +
|
'/?lang=' + this.zgoLanguage +
|
||||||
|
|
Loading…
Reference in a new issue