#878 doc,demo and code improvements userinfo component

This commit is contained in:
Mario Romano
2016-11-09 12:27:44 +00:00
parent 3aa64626de
commit 177c9694af
21 changed files with 269 additions and 108 deletions

View File

@@ -246,6 +246,16 @@ before performing unit testing.
npm run coverage
```
## NPM scripts
| Command | Description |
| --- | --- |
| npm run build | Build component |
| npm run build:w | Build component and keep watching the changes |
| npm run test | Run unit tests in the console |
| npm run test-browser | Run unit tests in the browser
| npm run coverage | Run unit tests and display code coverage report |
## License
[Apache Version 2.0](https://github.com/Alfresco/alfresco-ng2-components/blob/master/LICENSE)

View File

@@ -105,10 +105,10 @@ export class AlfrescoAuthenticationService {
* @returns {Observable<R>|Observable<T>}
*/
public logout() {
this.removeTicket();
return Observable.fromPromise(this.callApiLogout())
.map(res => <any> res)
.do(response => {
this.removeTicket();
return response;
})
.catch(this.handleError);