add info and link on current last git commit (#1940)

This commit is contained in:
Eugenio Romano
2017-06-07 07:32:56 +01:00
parent ab534215ba
commit 762f6a3223

View File

@@ -34,6 +34,8 @@ export class AboutComponent implements OnInit {
ecmHost: string = ''; ecmHost: string = '';
bpmHost: string = ''; bpmHost: string = '';
githubUrlCommitAlpha: string = 'https://github.com/Alfresco/alfresco-ng2-components/commits/';
constructor(private http: Http, constructor(private http: Http,
private appConfig: AppConfigService, private appConfig: AppConfigService,
private logService: LogService) { private logService: LogService) {
@@ -86,4 +88,19 @@ export class AboutComponent implements OnInit {
} }
} }
} }
private gitHubLinkCreation(alfrescoPackagesTableRepresentation): void {
let corePackage = alfrescoPackagesTableRepresentation.find((packageUp) => {
return packageUp.name === 'ng2-alfresco-core';
});
if (corePackage) {
let commitIsh = corePackage.version.split('-');
if (commitIsh.length > 1) {
this.githubUrlCommitAlpha = this.githubUrlCommitAlpha + commitIsh;
} else {
this.githubUrlCommitAlpha = this.githubUrlCommitAlpha + corePackage.version;
}
}
}
} }