mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Pre-Angular upgrade fixes (#5709)
* code fixes * code fixes * more code fixes * even more fixes * add missing typescript for cli * rollback info drawer test changes * use npx for cli commands * restore attach providers
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Response } from '@angular/http';
|
||||
import { TranslateLoader } from '@ngx-translate/core';
|
||||
import { Observable, forkJoin, throwError, of } from 'rxjs';
|
||||
import { ComponentTranslationModel } from '../models/component.model';
|
||||
@@ -59,7 +58,7 @@ export class TranslateLoaderService implements TranslateLoader {
|
||||
const translationUrl = fallbackUrl || `${component.path}/${this.prefix}/${lang}${this.suffix}?v=${Date.now()}`;
|
||||
|
||||
return this.http.get(translationUrl).pipe(
|
||||
map((res: Response) => {
|
||||
map((res: any) => {
|
||||
component.json[lang] = res;
|
||||
}),
|
||||
retry(3),
|
||||
|
Reference in New Issue
Block a user