ui: sync jobs: only set default schedule when creating new jobs
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8e12e86f0b
commit
54ed1b2a71
@ -23,6 +23,7 @@ Ext.define('PBS.window.SyncJobEdit', {
|
|||||||
me.url = id ? `${baseurl}/${id}` : baseurl;
|
me.url = id ? `${baseurl}/${id}` : baseurl;
|
||||||
me.method = id ? 'PUT' : 'POST';
|
me.method = id ? 'PUT' : 'POST';
|
||||||
me.autoLoad = !!id;
|
me.autoLoad = !!id;
|
||||||
|
me.scheduleValue = id ? null : 'hourly';
|
||||||
return { };
|
return { };
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -84,10 +85,10 @@ Ext.define('PBS.window.SyncJobEdit', {
|
|||||||
fieldLabel: gettext('Schedule'),
|
fieldLabel: gettext('Schedule'),
|
||||||
xtype: 'pbsCalendarEvent',
|
xtype: 'pbsCalendarEvent',
|
||||||
name: 'schedule',
|
name: 'schedule',
|
||||||
value: 'hourly',
|
|
||||||
emptyText: gettext('none (disabled)'),
|
emptyText: gettext('none (disabled)'),
|
||||||
cbind: {
|
cbind: {
|
||||||
deleteEmpty: '{!isCreate}',
|
deleteEmpty: '{!isCreate}',
|
||||||
|
value: '{scheduleValue}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user