[pbs-devel] [PATCH proxmox-backup v3 2/3] ui: sync job: add transfer-last parameter

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Apr 17 11:23:38 CEST 2023


works as expected, but looks a bit "jumpy" below the Ratelimit (since
that has the Unit at the end). maybe it could be re-ordered, or even
moved to the advanced section (until we have more snapshot filter
options, at which point we might move it to a "Snapshot Filter" tab?).

On April 13, 2023 5:41 pm, Stefan Hanreich wrote:
> Signed-off-by: Stefan Hanreich <s.hanreich at proxmox.com>
> ---
>  www/config/SyncView.js    |  9 ++++++++-
>  www/window/SyncJobEdit.js | 13 +++++++++++++
>  2 files changed, 21 insertions(+), 1 deletion(-)
> 
> diff --git a/www/config/SyncView.js b/www/config/SyncView.js
> index a90e9a70..bf9072cb 100644
> --- a/www/config/SyncView.js
> +++ b/www/config/SyncView.js
> @@ -3,7 +3,7 @@ Ext.define('pbs-sync-jobs-status', {
>      fields: [
>  	'id', 'owner', 'remote', 'remote-store', 'remote-ns', 'store', 'ns',
>  	'schedule', 'group-filter', 'next-run', 'last-run-upid', 'last-run-state',
> -	'last-run-endtime',
> +	'last-run-endtime', 'transfer-last',
>  	{
>  	    name: 'duration',
>  	    calculate: function(data) {
> @@ -241,6 +241,13 @@ Ext.define('PBS.config.SyncJobView', {
>  	    renderer: v => v ? Ext.String.htmlEncode(v) : gettext('All'),
>  	    width: 80,
>  	},
> +	{
> +	    header: gettext('Transfer Last'),
> +	    dataIndex: 'transfer-last',
> +	    flex: 1,
> +	    sortable: true,
> +	    hidden: true,
> +	},
>  	{
>  	    header: gettext('Schedule'),
>  	    dataIndex: 'schedule',
> diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
> index 948ad5da..64447ebc 100644
> --- a/www/window/SyncJobEdit.js
> +++ b/www/window/SyncJobEdit.js
> @@ -131,6 +131,19 @@ Ext.define('PBS.window.SyncJobEdit', {
>  			submitAutoScaledSizeUnit: true,
>  			// NOTE: handle deleteEmpty in onGetValues due to bandwidth field having a cbind too
>  		    },
> +		    {
> +			fieldLabel: gettext('Transfer Last'),
> +			xtype: 'pbsPruneKeepInput',
> +			name: 'transfer-last',
> +			emptyText: gettext('all'),
> +			autoEl: {
> +			    tag: 'div',
> +			    'data-qtip': gettext('The maximum amount of snapshots to be transferred (per group)'),
> +			},
> +			cbind: {
> +			    deleteEmpty: '{!isCreate}',
> +			},
> +		    },
>  		],
>  
>  		column2: [
> -- 
> 2.30.2
> 
> 
> _______________________________________________
> pbs-devel mailing list
> pbs-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
> 
> 
> 





More information about the pbs-devel mailing list