From 41c057c5e53288f4825906e15909fe75ceccb6fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Danyi?= Date: Wed, 29 Nov 2017 17:18:41 +0100 Subject: [PATCH] * prio color divider removed --- src/app/kanban/shared/kanban.service.ts | 35 +++++++++++++------------ 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/app/kanban/shared/kanban.service.ts b/src/app/kanban/shared/kanban.service.ts index dfe4029..f6ec934 100644 --- a/src/app/kanban/shared/kanban.service.ts +++ b/src/app/kanban/shared/kanban.service.ts @@ -23,7 +23,8 @@ export class KanbanService { * @returns {Observable} */ public getList(): Observable { - return this.httpService.get(this.url).map(res => this.preprocessPriorities(res.json())); + // return this.httpService.get(this.url).map(res => this.preprocessPriorities(res.json())); + return this.httpService.get(this.url).map(res => res.json()); } /** @@ -57,20 +58,20 @@ export class KanbanService { * @param {KanbanBoard} kanbanBoard * @returns {KanbanBoard} */ - private preprocessPriorities(kanbanBoard: KanbanBoard): KanbanBoard { - ['inbox','inProgress','verification'].map(progress => { - kanbanBoard[progress].map(entry => entry.isLastOfPriority = false); - ['Trivial', - 'Minor', - 'Major', - 'Critical', - 'Blocker'].map(prio => { - let prioLastIndex = kanbanBoard[progress].reduce((accumulator, value, idx) => value.issuePriority==prio ? idx : accumulator, -1); - try { - kanbanBoard[progress][prioLastIndex].isLastOfPriority = true; - } catch(e) {} - }); - }); - return kanbanBoard; - } + // private preprocessPriorities(kanbanBoard: KanbanBoard): KanbanBoard { + // ['inbox','inProgress','verification'].map(progress => { + // kanbanBoard[progress].map(entry => entry.isLastOfPriority = false); + // ['Trivial', + // 'Minor', + // 'Major', + // 'Critical', + // 'Blocker'].map(prio => { + // let prioLastIndex = kanbanBoard[progress].reduce((accumulator, value, idx) => value.issuePriority==prio ? idx : accumulator, -1); + // try { + // kanbanBoard[progress][prioLastIndex].isLastOfPriority = true; + // } catch(e) {} + // }); + // }); + // return kanbanBoard; + // } }