Add TaskInstance state to TI Tooltip to be colour-blind friendlier (#8910)
Currently there is no way to determine the state of a TaskInstance in the graph view or tree view for people with colour blindness Approximately 4.5% of people experience some form of colour vision deficiency
This commit is contained in:
Родитель
a9dfd7d1cf
Коммит
f3f74c7320
|
@ -61,6 +61,9 @@ function generateTooltipDateTimes(startDate, endDate, dagTZ) {
|
|||
|
||||
export default function tiTooltip(ti, {includeTryNumber = false} = {}) {
|
||||
let tt = '';
|
||||
if (ti.state !== undefined) {
|
||||
tt += `<strong>Status:</strong> ${escapeHtml(ti.state)}<br><br>`;
|
||||
}
|
||||
if (ti.task_id !== undefined) {
|
||||
tt += `Task_id: ${escapeHtml(ti.task_id)}<br>`;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче