process details improvements (#1408)

* process details improvements

- new: redirect to task instead of opening a dialog (Activiti parity)
- fixed: task headers for nameless tasks
- fixed: cursor style for task list items
- new: stub for ng-1 directive api (Activiti stencils)
- code cleanup

* error handling fixes
This commit is contained in:
Denys Vuika
2017-01-09 12:57:03 +00:00
committed by Will Abson
parent 35d2109f17
commit 885e0e85aa
15 changed files with 130 additions and 188 deletions

View File

@@ -40,7 +40,7 @@ export class BpmUserService {
getCurrentUserInfo(): Observable<BpmUserModel> {
return Observable.fromPromise(this.alfrescoJsApi.getInstance().activiti.profileApi.getProfile())
.map((data) => <BpmUserModel> data)
.catch(this.handleError);
.catch(err => this.handleError(err));
}
getCurrentUserProfileImage(): string {

View File

@@ -40,10 +40,8 @@ export class EcmUserService {
*/
getUserInfo(userName: string): Observable<EcmUserModel> {
return Observable.fromPromise(this.callApiGetPersonInfo(userName))
.map(
(data) => <EcmUserModel> data['entry']
)
.catch(this.handleError);
.map(data => <EcmUserModel> data['entry'])
.catch(err => this.handleError(err));
}
getCurrentUserInfo() {