diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts
index 7606b158e4..2b830962bb 100644
--- a/demo-shell-ng2/app/app.component.ts
+++ b/demo-shell-ng2/app/app.component.ts
@@ -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( (event.target).value);
+ this.hostecm = (event.target).value;
+ this.alfrescoSettingsService.host = this.hostecm;
+ }
+
isActive(instruction: any[]): boolean {
return this.router.isRouteActive(this.router.generate(instruction));
}