mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-19 19:53:43 +00:00
optimize 'running' field
we do not need to check for qemu/lxc/node because the other types do not have an uptime value Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
c6723ee58b
commit
ec8273637d
@ -53,11 +53,7 @@ Ext.define('PVE.data.ResourceStore', {
|
|||||||
hidden: true,
|
hidden: true,
|
||||||
convert: function(value, record) {
|
convert: function(value, record) {
|
||||||
var info = record.data;
|
var info = record.data;
|
||||||
if (info.type === 'qemu' || info.type === 'lxc' || info.type === 'node') {
|
return (Ext.isNumeric(info.uptime) && (info.uptime > 0));
|
||||||
return (Ext.isNumeric(info.uptime) && (info.uptime > 0));
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
|
Loading…
Reference in New Issue
Block a user