Web: show requested worker state transition
This commit is contained in:
parent
e18dab5c82
commit
1510489f4d
@ -12,7 +12,7 @@
|
||||
<dt class="field-status">Status</dt>
|
||||
<dd>{{ workerData.status }}
|
||||
<template v-if="workerData.status_requested">
|
||||
<span class='state-transition-arrow'>➜</span> {{ workerData.status_requested }}
|
||||
➜ {{ workerData.status_requested }}
|
||||
</template>
|
||||
</dd>
|
||||
|
||||
|
@ -44,9 +44,12 @@ export default {
|
||||
{
|
||||
title: 'Status', field: 'status', sorter: 'string',
|
||||
formatter: (cell) => {
|
||||
const status = cell.getData().status;
|
||||
const dot = indicator(status, 'worker-');
|
||||
return `${dot} ${status}`;
|
||||
const data = cell.getData();
|
||||
const dot = indicator(data.status, 'worker-');
|
||||
if (data.status_requested) {
|
||||
return `${dot} ${data.status} <span class='state-transition-arrow'>➜</span> ${data.status_requested}`;
|
||||
}
|
||||
return `${dot} ${data.status}`;
|
||||
},
|
||||
},
|
||||
{ title: 'Name', field: 'nickname', sorter: 'string' },
|
||||
|
Loading…
x
Reference in New Issue
Block a user