Verified Commit 22040638 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Fix column order.

parent e9010642
Pipeline #31631 passed with stages
in 25 minutes and 15 seconds
......@@ -54,40 +54,14 @@ Ext.define("NOC.sa.managedobject.SensorsPanel", {
stateId: "sa.managedobject-sensors-grid",
store: me.sensorsStore,
columns: [
{
text: __("ID"),
dataIndex: "id"
},
{
text: __("Labels"),
dataIndex: "labels",
renderer: NOC.render.LabelField,
editor: "labelfield"
},
{
text: __("IPMI ID"),
dataIndex: "ipmi_id"
},
{
text: __("Label"),
dataIndex: "label"
},
{
text: __("Last Seen"),
dataIndex: "last_seen",
renderer: NOC.render.DateTime,
},
{
text: __("Local ID"),
dataIndex: "local_id"
},
{
text: __("Managed Object"),
dataIndex: "managed_object"
},
{
text: __("Modbus Register"),
dataIndex: "modbus_register"
text: __("Description"),
dataIndex: "label",
width: 250
},
{
text: __("Profile"),
......@@ -96,28 +70,42 @@ Ext.define("NOC.sa.managedobject.SensorsPanel", {
editor: "inv.sensorprofile.LookupField"
},
{
text: __("Object"),
dataIndex: "object",
renderer: NOC.render.Lookup("object"),
},
{
text: __("Protocol"),
dataIndex: "protocol"
text: __("Labels"),
dataIndex: "labels",
renderer: NOC.render.LabelField,
editor: "labelfield",
width: 200
},
{
text: __("SNMP OID"),
dataIndex: "snmp_oid"
text: __("Units"),
dataIndex: "units",
renderer: NOC.render.Lookup("units"),
},
{
text: __("State"),
dataIndex: "state",
renderer: NOC.render.Lookup("state"),
width: 200
},
{
text: __("Units"),
dataIndex: "units",
renderer: NOC.render.Lookup("units"),
text: __("Last Seen"),
dataIndex: "last_seen",
renderer: NOC.render.DateTime,
width: 200
},
{
text: __("SNMP OID"),
dataIndex: "snmp_oid",
width: 200
},
{
text: __("IPMI ID"),
dataIndex: "ipmi_id"
},
{
text: __("Modbus Register"),
dataIndex: "modbus_register"
}
],
viewConfig: {
getRowClass: Ext.bind(me.getRowClass, me),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment