[pbs-devel] [PATCH v2 proxmox-backup 5/6] ui: add verify-schedule field to edit datastore form

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Sep 18 15:26:49 CEST 2020


On 9/18/20 11:00 AM, Hannes Laimer wrote:
> Signed-off-by: Hannes Laimer <h.laimer at proxmox.com>
> ---
>  www/config/DataStoreConfig.js | 5 +++--
>  www/window/DataStoreEdit.js   | 9 +++++++++
>  2 files changed, 12 insertions(+), 2 deletions(-)
> 
> diff --git a/www/config/DataStoreConfig.js b/www/config/DataStoreConfig.js
> index 54d7a505..685d3d5f 100644
> --- a/www/config/DataStoreConfig.js
> +++ b/www/config/DataStoreConfig.js
> @@ -11,8 +11,9 @@ Ext.define('pbs-datastore-list', {
>  Ext.define('pbs-data-store-config', {
>      extend: 'Ext.data.Model',
>      fields: [
> -	'name', 'path', 'comment', 'gc-schedule', 'prune-schedule', 'keep-last',
> -	'keep-hourly', 'keep-daily', 'keep-weekly', 'keep-monthly', 'keep-yearly',
> +	'name', 'path', 'comment', 'gc-schedule', 'prune-schedule',
> +	'verify-schedule', 'keep-last', 'keep-hourly', 'keep-daily',
> +	'keep-weekly', 'keep-monthly', 'keep-yearly',
>      ],
>      proxy: {
>          type: 'proxmox',
> diff --git a/www/window/DataStoreEdit.js b/www/window/DataStoreEdit.js
> index adb857ab..926a8a19 100644
> --- a/www/window/DataStoreEdit.js
> +++ b/www/window/DataStoreEdit.js
> @@ -71,6 +71,15 @@ Ext.define('PBS.DataStoreEdit', {
>  			    deleteEmpty: '{!isCreate}',
>  			},
>  		    },
> +		{
> +			xtype: 'pbsCalendarEvent',
> +			name: 'verify-schedule',
> +			fieldLabel: gettext("Verify Schedule"),
> +			emptyText: gettext('none'),
> +			cbind: {
> +			    deleteEmpty: '{!isCreate}',
> +			},
> +		    },
>  		],
>  		columnB: [
>  		    {
> 

just as a note, respective column is missing from the datastore configuration
grid. But, see also my and Dominik's other mail about the different, more
flexible and less crowded approach to list/manage schedules.





More information about the pbs-devel mailing list