diff --git a/demo-shell-ng2/app/app.component.html b/demo-shell-ng2/app/app.component.html index 86fbb1807b..0903e81425 100644 --- a/demo-shell-ng2/app/app.component.html +++ b/demo-shell-ng2/app/app.component.html @@ -33,7 +33,7 @@
  • English
  • Greek
  • Italian
  • -
  • More
  • +
  • More
  • Login
  • Logout
  • @@ -51,10 +51,15 @@ Webscript About - Configurations + Configurations ECM + Configurations BPM +
    diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index 2b830962bb..8ef19f2260 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -61,24 +61,31 @@ declare var document: any; export class AppComponent { translate: AlfrescoTranslationService; searchTerm: string = ''; - hostecm: string = 'http://localhost:8080'; + + ecmHost: string = 'http://localhost:8080'; + bpmHost: string = 'http://localhost:9999'; constructor(public auth: AlfrescoAuthenticationService, public router: Router, translate: AlfrescoTranslationService, alfrescoSettingsService: AlfrescoSettingsService) { - alfrescoSettingsService.ecmHost = 'http://localhost:8080'; - alfrescoSettingsService.bpmHost = 'http://localhost:9999'; - alfrescoSettingsService.host = this.hostecm; + alfrescoSettingsService.bpmHost = this.bpmHost; + alfrescoSettingsService.ecmHost = this.ecmHost; this.translate = translate; this.translate.addTranslationFolder(); } - public onChangeHost(event: KeyboardEvent): void { + public onChangeECMHost(event: KeyboardEvent): void { console.log( (event.target).value); - this.hostecm = (event.target).value; - this.alfrescoSettingsService.host = this.hostecm; + this.ecmHost = (event.target).value; + this.alfrescoSettingsService.ecmHost = this.ecmHost; + } + + public onChangeBPMHost(event: KeyboardEvent): void { + console.log((event.target).value); + this.bpmHost = (event.target).value; + this.alfrescoSettingsService.bpmHost = this.bpmHost; } isActive(instruction: any[]): boolean {