Web: include name of status in worker list

This makes it a bit easier to interpret. Just having the colours might
be too little information.
This commit is contained in:
Sybren A. Stüvel 2022-05-31 15:23:42 +02:00
parent 2e11c1c240
commit 66edc5c4d3
2 changed files with 7 additions and 2 deletions

View File

@ -304,8 +304,9 @@ footer {
background-color: var(--indicator-color);
border: calc(var(--indicator-size)/2) solid var(--indicator-color);
border-radius: 50%;
display: block;
display: inline-block;
height: var(--indicator-size);
vertical-align: middle;
width: var(--indicator-size);
}

View File

@ -43,7 +43,11 @@ export default {
// { title: "ID", field: "id", headerSort: false, formatter: (cell) => cell.getData().id.substr(0, 8), },
{
title: 'Status', field: 'status', sorter: 'string',
formatter: (cell) => indicator(cell.getData().status, 'worker-'),
formatter: (cell) => {
const status = cell.getData().status;
const dot = indicator(status, 'worker-');
return `${dot} ${status}`;
},
},
{ title: 'Name', field: 'nickname', sorter: 'string' },
],