[ACA-3317] Split About component into smaller components (#5708)

This commit is contained in:
davidcanonieto
2020-05-18 09:39:58 +01:00
committed by GitHub
parent 22acd3f6e6
commit 1def8000f0
11 changed files with 142 additions and 59 deletions

View File

@@ -15,16 +15,14 @@
* limitations under the License.
*/
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core';
import { AppConfigService, AppConfigValues } from '../../app-config/app-config.service';
import { Component, Input, ViewEncapsulation } from '@angular/core';
@Component({
selector: 'adf-about-github-link',
templateUrl: './about-github-link.component.html',
encapsulation: ViewEncapsulation.None
})
export class AboutGithubLinkComponent implements OnInit {
export class AboutGithubLinkComponent {
/** Commit corresponding to the version of ADF to be used. */
@Input()
url = 'https://github.com/Alfresco/alfresco-ng2-components/commits/';
@@ -32,15 +30,8 @@ export class AboutGithubLinkComponent implements OnInit {
/** Current version of the app running */
@Input() version: string;
ecmHost = '';
bpmHost = '';
application: string;
/** Current version of the app running */
@Input() application: string;
constructor(private appConfig: AppConfigService) {}
ngOnInit() {
this.ecmHost = this.appConfig.get<string>(AppConfigValues.ECMHOST);
this.bpmHost = this.appConfig.get<string>(AppConfigValues.BPMHOST);
this.application = this.appConfig.get<string>('application.name');
}
constructor() {}
}