add htmlEncode to S.M.A.R.T. Fields

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2016-10-04 13:39:35 +02:00 committed by Dietmar Maurer
parent 6f6bb9c2eb
commit 232801847b

View File

@ -63,24 +63,28 @@ Ext.define('PVE.node.DiskList', {
header: gettext('Vendor'), header: gettext('Vendor'),
width: 100, width: 100,
sortable: true, sortable: true,
renderer: Ext.String.htmlEncode,
dataIndex: 'vendor' dataIndex: 'vendor'
}, },
{ {
header: gettext('Model'), header: gettext('Model'),
width: 200, width: 200,
sortable: true, sortable: true,
renderer: Ext.String.htmlEncode,
dataIndex: 'model' dataIndex: 'model'
}, },
{ {
header: gettext('Serial'), header: gettext('Serial'),
width: 200, width: 200,
sortable: true, sortable: true,
renderer: Ext.String.htmlEncode,
dataIndex: 'serial' dataIndex: 'serial'
}, },
{ {
header: 'S.M.A.R.T.', header: 'S.M.A.R.T.',
width: 100, width: 100,
sortable: true, sortable: true,
renderer: Ext.String.htmlEncode,
dataIndex: 'health' dataIndex: 'health'
}, },
{ {
@ -236,13 +240,13 @@ Ext.define('PVE.DiskSmartWindow', {
reserveScrollbar: true, reserveScrollbar: true,
columns: [ columns: [
{ text: 'ID', dataIndex: 'id', width: 50 }, { text: 'ID', dataIndex: 'id', width: 50 },
{ text: gettext('Attribute'), flex: 1, dataIndex: 'name' }, { text: gettext('Attribute'), flex: 1, dataIndex: 'name', renderer: Ext.String.htmlEncode },
{ text: gettext('Value'), dataIndex: 'raw'}, { text: gettext('Value'), dataIndex: 'raw', renderer: Ext.String.htmlEncode },
{ text: gettext('Normalized'), dataIndex: 'value', width: 60}, { text: gettext('Normalized'), dataIndex: 'value', width: 60},
{ text: gettext('Threshold'), dataIndex: 'threshold', width: 60}, { text: gettext('Threshold'), dataIndex: 'threshold', width: 60},
{ text: gettext('Worst'), dataIndex: 'worst', width: 60}, { text: gettext('Worst'), dataIndex: 'worst', width: 60},
{ text: gettext('Flags'), dataIndex: 'flags'}, { text: gettext('Flags'), dataIndex: 'flags'},
{ text: gettext('Failing'), dataIndex: 'fail'} { text: gettext('Failing'), dataIndex: 'fail', renderer: Ext.String.htmlEncode }
] ]
} }
], ],