* added red color for label BLOCKED
* added worklog as number to priority filter
This commit is contained in:
parent
99ea9e903a
commit
1785b204ff
@ -9,7 +9,7 @@
|
|||||||
<div class="ui jira-avatar floated image">
|
<div class="ui jira-avatar floated image">
|
||||||
<img src="{{avatarUrl(kanbanEntry.assignee?.avatar)}}">
|
<img src="{{avatarUrl(kanbanEntry.assignee?.avatar)}}">
|
||||||
</div>
|
</div>
|
||||||
<span [innerHTML]="kanbanEntry.summary|shortenText|priorityColor:kanbanEntry.issuePriorityIcon" [title]="kanbanEntry.summary"></span>
|
<span [innerHTML]="kanbanEntry.summary|shortenText|priorityColor:kanbanEntry.issuePriorityIcon:kanbanEntry.worklog" [title]="kanbanEntry.summary"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -10,6 +10,7 @@ const labelColors = {
|
|||||||
MTAS: 'orange',
|
MTAS: 'orange',
|
||||||
Internal: 'yellow',
|
Internal: 'yellow',
|
||||||
Team: 'yellow',
|
Team: 'yellow',
|
||||||
|
BLOCKED: 'red',
|
||||||
};
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@ -23,5 +23,5 @@ export class KanbanEntry {
|
|||||||
public team: string;
|
public team: string;
|
||||||
public answerCode: string;
|
public answerCode: string;
|
||||||
public isLastOfPriority: boolean;
|
public isLastOfPriority: boolean;
|
||||||
public worklog: string;
|
public worklog: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,10 +5,10 @@ import {Pipe, PipeTransform} from '@angular/core';
|
|||||||
})
|
})
|
||||||
export class PriorityColorPipe implements PipeTransform {
|
export class PriorityColorPipe implements PipeTransform {
|
||||||
|
|
||||||
transform(value: any, prioIcon: string = ""): any {
|
transform(value: any, prioIcon: string = "", worklog: number = 0): any {
|
||||||
let mhrMatch = /(\[.*mhr\])/ig;
|
let mhrMatch = /(\[(.*)mhr\])/ig;
|
||||||
value = value.replace(mhrMatch, (fullMatch: string, mhrMatched: string) => {
|
value = value.replace(mhrMatch, (fullMatch: string, mhrMatched: string, hoursMatch: number) => {
|
||||||
return `<span class="match-mhr">${mhrMatched}</span> `;
|
return `<span class="match-mhr">[${worklog}/${hoursMatch} mhr] </span> `;
|
||||||
});
|
});
|
||||||
let sMatch = /(\[s\])/ig;
|
let sMatch = /(\[s\])/ig;
|
||||||
value = value.replace(sMatch, (fullMatch: string, mhrMatched: string) => {
|
value = value.replace(sMatch, (fullMatch: string, mhrMatched: string) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user