api bugfix
This commit is contained in:
parent
bb22a17baf
commit
2066fd69f2
|
@ -317,14 +317,21 @@ export class CommonApiService {
|
||||||
public translationSave(
|
public translationSave(
|
||||||
req: TranslationSaveRequest
|
req: TranslationSaveRequest
|
||||||
): Observable<TranslationSaveResponse> {
|
): Observable<TranslationSaveResponse> {
|
||||||
return this.httpClient
|
const httpReq = new HttpRequest(
|
||||||
.post<any>(
|
'POST',
|
||||||
this.urls.translationSave,
|
this.urls.translationSave,
|
||||||
{},
|
encodeTranslationSave(req),
|
||||||
{
|
{ reportProgress: true }
|
||||||
params: encodeTranslationSave(req)
|
);
|
||||||
|
|
||||||
|
return this.httpClient.request(httpReq).pipe(
|
||||||
|
filter(event => {
|
||||||
|
if (event instanceof HttpResponse) {
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
)
|
return false;
|
||||||
.pipe(map(res => decodeTranslationSave(res)));
|
}),
|
||||||
|
map(res => decodeTranslationSave((res as HttpResponse<any>).body))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user