gui: dc/Tasks.js fix trailing whitespace

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2018-10-05 10:19:22 +02:00 committed by Thomas Lamprecht
parent c88170a478
commit 9d8d96c675

View File

@ -56,7 +56,7 @@ Ext.define('PVE.dc.Tasks', {
viewConfig: { viewConfig: {
trackOver: false, trackOver: false,
stripeRows: true, // does not work with getRowClass() stripeRows: true, // does not work with getRowClass()
getRowClass: function(record, index) { getRowClass: function(record, index) {
var status = record.get('status'); var status = record.get('status');
@ -67,21 +67,21 @@ Ext.define('PVE.dc.Tasks', {
}, },
sortableColumns: false, sortableColumns: false,
columns: [ columns: [
{ {
header: gettext("Start Time"), header: gettext("Start Time"),
dataIndex: 'starttime', dataIndex: 'starttime',
width: 150, width: 150,
renderer: function(value) { renderer: function(value) {
return Ext.Date.format(value, "M d H:i:s"); return Ext.Date.format(value, "M d H:i:s");
} }
}, },
{ {
header: gettext("End Time"), header: gettext("End Time"),
dataIndex: 'endtime', dataIndex: 'endtime',
width: 150, width: 150,
renderer: function(value, metaData, record) { renderer: function(value, metaData, record) {
if (record.data.pid) { if (record.data.pid) {
if (record.data.type == "vncproxy" || if (record.data.type == "vncproxy" ||
record.data.type == "vncshell" || record.data.type == "vncshell" ||
record.data.type == "spiceproxy") { record.data.type == "spiceproxy") {
metaData.tdCls = "x-grid-row-console"; metaData.tdCls = "x-grid-row-console";
@ -90,30 +90,30 @@ Ext.define('PVE.dc.Tasks', {
} }
return ""; return "";
} }
return Ext.Date.format(value, "M d H:i:s"); return Ext.Date.format(value, "M d H:i:s");
} }
}, },
{ {
header: gettext("Node"), header: gettext("Node"),
dataIndex: 'node', dataIndex: 'node',
width: 100 width: 100
}, },
{ {
header: gettext("User name"), header: gettext("User name"),
dataIndex: 'user', dataIndex: 'user',
width: 150 width: 150
}, },
{ {
header: gettext("Description"), header: gettext("Description"),
dataIndex: 'upid', dataIndex: 'upid',
flex: 1, flex: 1,
renderer: Proxmox.Utils.render_upid renderer: Proxmox.Utils.render_upid
}, },
{ {
header: gettext("Status"), header: gettext("Status"),
dataIndex: 'status', dataIndex: 'status',
width: 200, width: 200,
renderer: function(value, metaData, record) { renderer: function(value, metaData, record) {
if (record.data.pid) { if (record.data.pid) {
if (record.data.type != "vncproxy") { if (record.data.type != "vncproxy") {
metaData.tdCls = "x-grid-row-loading"; metaData.tdCls = "x-grid-row-loading";
@ -123,7 +123,7 @@ Ext.define('PVE.dc.Tasks', {
if (value == 'OK') { if (value == 'OK') {
return 'OK'; return 'OK';
} }
// metaData.attr = 'style="color:red;"'; // metaData.attr = 'style="color:red;"';
return Proxmox.Utils.errorText + ': ' + value; return Proxmox.Utils.errorText + ': ' + value;
} }
} }