rename two times service class just once

move responsability providers configurration in setting service
refactoring
This commit is contained in:
Eugenio Romano
2016-08-16 17:46:34 +01:00
parent 560bef7c1d
commit dc19e45e7b
18 changed files with 183 additions and 178 deletions

View File

@@ -126,6 +126,9 @@ class MyDemoApp {
constructor(public alfrescoAuthenticationService: AlfrescoAuthenticationService,
private alfrescoSettingsService: AlfrescoSettingsService) {
alfrescoSettingsService.ecmHost = this.ecmHost;
alfrescoSettingsService.setProviders('ECM');
}
ngOnInit() {
@@ -133,7 +136,7 @@ class MyDemoApp {
}
login() {
this.alfrescoAuthenticationService.login('admin', 'admin', 'ECM').subscribe(
this.alfrescoAuthenticationService.login('admin', 'admin').subscribe(
token => {
this.token = token.ticket;
this.authenticated = true;