mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#421 set host url in the left menu bar
This commit is contained in:
@@ -61,6 +61,7 @@ declare var document: any;
|
||||
export class AppComponent {
|
||||
translate: AlfrescoTranslationService;
|
||||
searchTerm: string = '';
|
||||
hostecm: string = 'http://localhost:8080';
|
||||
|
||||
constructor(public auth: AlfrescoAuthenticationService,
|
||||
public router: Router,
|
||||
@@ -68,11 +69,18 @@ export class AppComponent {
|
||||
alfrescoSettingsService: AlfrescoSettingsService) {
|
||||
alfrescoSettingsService.ecmHost = 'http://localhost:8080';
|
||||
alfrescoSettingsService.bpmHost = 'http://localhost:9999';
|
||||
alfrescoSettingsService.host = this.hostecm;
|
||||
|
||||
this.translate = translate;
|
||||
this.translate.addTranslationFolder();
|
||||
}
|
||||
|
||||
public onChangeHost(event: KeyboardEvent): void {
|
||||
console.log( (<HTMLInputElement>event.target).value);
|
||||
this.hostecm = (<HTMLInputElement>event.target).value;
|
||||
this.alfrescoSettingsService.host = this.hostecm;
|
||||
}
|
||||
|
||||
isActive(instruction: any[]): boolean {
|
||||
return this.router.isRouteActive(this.router.generate(instruction));
|
||||
}
|
||||
|
Reference in New Issue
Block a user