* prio color divider removed
This commit is contained in:
parent
04aa27bd2e
commit
41c057c5e5
@ -23,7 +23,8 @@ export class KanbanService {
|
|||||||
* @returns {Observable<KanbanBoard>}
|
* @returns {Observable<KanbanBoard>}
|
||||||
*/
|
*/
|
||||||
public getList(): Observable<KanbanBoard> {
|
public getList(): Observable<KanbanBoard> {
|
||||||
return this.httpService.get(this.url).map(res => this.preprocessPriorities(<KanbanBoard>res.json()));
|
// return this.httpService.get(this.url).map(res => this.preprocessPriorities(<KanbanBoard>res.json()));
|
||||||
|
return this.httpService.get(this.url).map(res => <KanbanBoard>res.json());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -57,20 +58,20 @@ export class KanbanService {
|
|||||||
* @param {KanbanBoard} kanbanBoard
|
* @param {KanbanBoard} kanbanBoard
|
||||||
* @returns {KanbanBoard}
|
* @returns {KanbanBoard}
|
||||||
*/
|
*/
|
||||||
private preprocessPriorities(kanbanBoard: KanbanBoard): KanbanBoard {
|
// private preprocessPriorities(kanbanBoard: KanbanBoard): KanbanBoard {
|
||||||
['inbox','inProgress','verification'].map(progress => {
|
// ['inbox','inProgress','verification'].map(progress => {
|
||||||
kanbanBoard[progress].map(entry => entry.isLastOfPriority = false);
|
// kanbanBoard[progress].map(entry => entry.isLastOfPriority = false);
|
||||||
['Trivial',
|
// ['Trivial',
|
||||||
'Minor',
|
// 'Minor',
|
||||||
'Major',
|
// 'Major',
|
||||||
'Critical',
|
// 'Critical',
|
||||||
'Blocker'].map(prio => {
|
// 'Blocker'].map(prio => {
|
||||||
let prioLastIndex = kanbanBoard[progress].reduce((accumulator, value, idx) => value.issuePriority==prio ? idx : accumulator, -1);
|
// let prioLastIndex = kanbanBoard[progress].reduce((accumulator, value, idx) => value.issuePriority==prio ? idx : accumulator, -1);
|
||||||
try {
|
// try {
|
||||||
kanbanBoard[progress][prioLastIndex].isLastOfPriority = true;
|
// kanbanBoard[progress][prioLastIndex].isLastOfPriority = true;
|
||||||
} catch(e) {}
|
// } catch(e) {}
|
||||||
});
|
// });
|
||||||
});
|
// });
|
||||||
return kanbanBoard;
|
// return kanbanBoard;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user