mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-3317] Split About component into smaller components (#5708)
This commit is contained in:
@@ -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() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user