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:
parent
2e11c1c240
commit
66edc5c4d3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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' },
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user