[ADF-487] added discovery information to about component (#2102)

* [ADF-487] - added discovery service to core

* [ADF-487]- added activiti about call

* [ADF-487] added discovery info into about component

* [ADF-487] removed wrong console log

* [ADF-487] fixed problem on index
This commit is contained in:
Vito
2017-07-19 08:05:07 -07:00
committed by Eugenio Romano
parent 45ee5eebec
commit 7ea82c0856
7 changed files with 484 additions and 2 deletions

View File

@@ -17,7 +17,7 @@
import { Component, OnInit } from '@angular/core';
import { Http } from '@angular/http';
import { AppConfigService, LogService } from 'ng2-alfresco-core';
import { AlfrescoAuthenticationService, AppConfigService, BpmProductVersionModel, DiscoveryApiService, EcmProductVersionModel, LogService } from 'ng2-alfresco-core';
import { ObjectDataTableAdapter } from 'ng2-alfresco-datatable';
@Component({
@@ -42,10 +42,21 @@ export class AboutComponent implements OnInit {
constructor(private http: Http,
private appConfig: AppConfigService,
private logService: LogService) {
private authService: AlfrescoAuthenticationService,
private logService: LogService,
private discovery: DiscoveryApiService) {
}
ngOnInit() {
this.discovery.getEcmProductInfo().subscribe((ecmVers) => {
this.ecmVersion = ecmVers;
});
this.discovery.getBpmProductInfo().subscribe((bpmVers) => {
this.bpmVersion = bpmVers;
});
this.http.get('/versions.json').subscribe(response => {
let regexp = new RegExp('^(ng2-activiti|ng2-alfresco|alfresco-)');