mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
migrate to HttpClient as per Angualar 5/6 prep
This commit is contained in:
parent
ad9ce9e88f
commit
8cd6d29b23
@ -24,7 +24,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { Http } from '@angular/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { ObjectDataTableAdapter } from '@alfresco/adf-core';
|
import { ObjectDataTableAdapter } from '@alfresco/adf-core';
|
||||||
import { ContentApiService } from '../../services/content-api.service';
|
import { ContentApiService } from '../../services/content-api.service';
|
||||||
import { RepositoryInfo } from 'alfresco-js-api';
|
import { RepositoryInfo } from 'alfresco-js-api';
|
||||||
@ -44,7 +44,7 @@ export class AboutComponent implements OnInit {
|
|||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private contentApi: ContentApiService,
|
private contentApi: ContentApiService,
|
||||||
private http: Http
|
private http: HttpClient
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@ -85,8 +85,7 @@ export class AboutComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.http.get('/versions.json')
|
this.http.get('/versions.json')
|
||||||
.map(response => response.json())
|
.subscribe((response: any) => {
|
||||||
.subscribe(response => {
|
|
||||||
const regexp = new RegExp('^(@alfresco|alfresco-)');
|
const regexp = new RegExp('^(@alfresco|alfresco-)');
|
||||||
|
|
||||||
const alfrescoPackagesTableRepresentation = Object.keys(response.dependencies)
|
const alfrescoPackagesTableRepresentation = Object.keys(response.dependencies)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user