mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
add info and link on current last git commit (#1940)
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user