mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-06-26 20:21:49 +00:00
node: service state: restore original behavior
This reverts commit461298d80a
and commit4ca542b811
to get back to the original state, which is already good enough here, as systemd unit states are simply not translatable well, and are never translated by systemd, so doing that will make most users life actually harder. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
461298d80a
commit
e79a20a8cc
@ -201,7 +201,16 @@ Ext.define('Proxmox.node.ServiceView', {
|
|||||||
width: 100,
|
width: 100,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'state',
|
dataIndex: 'state',
|
||||||
renderer: (value, meta, rec) => rec.get('state'),
|
renderer: (value, meta, rec) => {
|
||||||
|
const unitState = rec.get('unit-state');
|
||||||
|
if (unitState === 'masked') {
|
||||||
|
return gettext('disabled');
|
||||||
|
} else if (unitState === 'not-found') {
|
||||||
|
return gettext('not installed');
|
||||||
|
} else {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: gettext('Active'),
|
header: gettext('Active'),
|
||||||
@ -216,7 +225,6 @@ Ext.define('Proxmox.node.ServiceView', {
|
|||||||
sortable: true,
|
sortable: true,
|
||||||
hidden: !Ext.Array.contains(['PVEAuthCookie', 'PBSAuthCookie'], Proxmox?.Setup?.auth_cookie_name),
|
hidden: !Ext.Array.contains(['PVEAuthCookie', 'PBSAuthCookie'], Proxmox?.Setup?.auth_cookie_name),
|
||||||
dataIndex: 'unit-state',
|
dataIndex: 'unit-state',
|
||||||
renderer: (value, meta, rec) => rec.get('unit-state'),
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: gettext('Description'),
|
header: gettext('Description'),
|
||||||
|
Loading…
Reference in New Issue
Block a user