[pve-devel] applied: [PATCH manager 2/3] gui: dc/Tasks.js fix trailing whitespace

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Oct 5 11:48:57 CEST 2018


On 10/5/18 10:19 AM, Dominik Csapak wrote:
> Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
> ---
>  www/manager6/dc/Tasks.js | 44 ++++++++++++++++++++++----------------------
>  1 file changed, 22 insertions(+), 22 deletions(-)
> 
> diff --git a/www/manager6/dc/Tasks.js b/www/manager6/dc/Tasks.js
> index b33ecbe3..6368d526 100644
> --- a/www/manager6/dc/Tasks.js
> +++ b/www/manager6/dc/Tasks.js
> @@ -56,7 +56,7 @@ Ext.define('PVE.dc.Tasks', {
>  	    viewConfig: {
>  		trackOver: false,
>  		stripeRows: true, // does not work with getRowClass()
> - 
> +
>  		getRowClass: function(record, index) {
>  		    var status = record.get('status');
>  
> @@ -66,16 +66,16 @@ Ext.define('PVE.dc.Tasks', {
>  		}
>  	    },
>  	    columns: [
> -		{ 
> -		    header: gettext("Start Time"), 
> +		{
> +		    header: gettext("Start Time"),
>  		    dataIndex: 'starttime',
>  		    width: 150,
> -		    renderer: function(value) { 
> -			return Ext.Date.format(value, "M d H:i:s"); 
> +		    renderer: function(value) {
> +			return Ext.Date.format(value, "M d H:i:s");
>  		    }
>  		},
> -		{ 
> -		    header: gettext("End Time"), 
> +		{
> +		    header: gettext("End Time"),
>  		    dataIndex: 'endtime',
>  		    width: 150,
>  		    sorter: {
> @@ -86,7 +86,7 @@ Ext.define('PVE.dc.Tasks', {
>  		    },
>  		    renderer: function(value, metaData, record) {
>  			if (record.data.pid) {
> -			    if (record.data.type == "vncproxy" || 
> +			    if (record.data.type == "vncproxy" ||
>  				record.data.type == "vncshell" ||
>  				record.data.type == "spiceproxy") {
>  				metaData.tdCls =  "x-grid-row-console";
> @@ -95,30 +95,30 @@ Ext.define('PVE.dc.Tasks', {
>  			    }
>  			    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',
>  		    width: 100
>  		},
> -		{ 
> -		    header: gettext("User name"), 
> +		{
> +		    header: gettext("User name"),
>  		    dataIndex: 'user',
>  		    width: 150
>  		},
> -		{ 
> -		    header: gettext("Description"), 
> -		    dataIndex: 'upid', 
> -		    flex: 1,		  
> +		{
> +		    header: gettext("Description"),
> +		    dataIndex: 'upid',
> +		    flex: 1,
>  		    renderer: Proxmox.Utils.render_upid
>  		},
> -		{ 
> -		    header: gettext("Status"), 
> -		    dataIndex: 'status', 
> +		{
> +		    header: gettext("Status"),
> +		    dataIndex: 'status',
>  		    width: 200,
> -		    renderer: function(value, metaData, record) { 
> +		    renderer: function(value, metaData, record) {
>  			if (record.data.pid) {
>  			    if (record.data.type != "vncproxy") {
>  				metaData.tdCls =  "x-grid-row-loading";
> @@ -128,7 +128,7 @@ Ext.define('PVE.dc.Tasks', {
>  			if (value == 'OK') {
>  			    return 'OK';
>  			}
> -			// metaData.attr = 'style="color:red;"'; 
> +			// metaData.attr = 'style="color:red;"';
>  			return Proxmox.Utils.errorText + ': ' + value;
>  		    }
>  		}
> 

applied




More information about the pve-devel mailing list