mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-19 17:14:57 +00:00
improve api service configuration (#5759)
This commit is contained in:
parent
cafedf29f6
commit
ffcd16aeaf
@ -46,8 +46,8 @@ export class ApiService {
|
||||
if (clientIdOrAppConfig && typeof clientIdOrAppConfig !== 'string') {
|
||||
this.config = { ...this.config, ...clientIdOrAppConfig };
|
||||
|
||||
this.config.hostEcm = clientIdOrAppConfig.hostEcm ? clientIdOrAppConfig.hostEcm : browser.params.testConfig.appConfig.ecmHost;
|
||||
this.config.hostBpm = clientIdOrAppConfig.hostBpm ? clientIdOrAppConfig.hostBpm : browser.params.testConfig.appConfig.bpmHost;
|
||||
this.config.hostEcm = clientIdOrAppConfig.hostEcm ? clientIdOrAppConfig.hostEcm : this.config.hostEcm;
|
||||
this.config.hostBpm = clientIdOrAppConfig.hostBpm ? clientIdOrAppConfig.hostBpm : this.config.hostBpm;
|
||||
} else if (clientIdOrAppConfig && typeof clientIdOrAppConfig === 'string') {
|
||||
this.config.oauth2.clientId = clientIdOrAppConfig;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user