apply new host parameters

This commit is contained in:
Eugenio Romano
2016-08-22 16:00:16 +01:00
parent 720480de00
commit 76915365b6

View File

@@ -37,16 +37,16 @@ export class AlfrescoAuthenticationService {
this.alfrescoApi = new AlfrescoApi({ this.alfrescoApi = new AlfrescoApi({
provider: this.alfrescoSetting.getProviders(), provider: this.alfrescoSetting.getProviders(),
ticket: this.isLoggedIn() ? this.getTicket().split(',')[0] : null, ticket: this.isLoggedIn() ? this.getTicket().split(',')[0] : null,
host: this.alfrescoSetting.ecmHost, hostEcm: this.alfrescoSetting.ecmHost,
hostActiviti: this.alfrescoSetting.bpmHost hostBpm: this.alfrescoSetting.bpmHost
}); });
alfrescoSetting.bpmHostSubject.subscribe((value) => { alfrescoSetting.bpmHostSubject.subscribe((value) => {
this.alfrescoApi.config.hostActiviti = value; this.alfrescoApi.config.hostBpm = value;
}); });
alfrescoSetting.ecmHostSubject.subscribe((value) => { alfrescoSetting.ecmHostSubject.subscribe((value) => {
this.alfrescoApi.config.host = value; this.alfrescoApi.config.hostEcm = value;
}); });
alfrescoSetting.providerSubject.subscribe((value) => { alfrescoSetting.providerSubject.subscribe((value) => {