ui: require owner for sync jobs
This commit is contained in:
parent
043406d662
commit
1b37ebf6f6
|
@ -112,6 +112,7 @@ Ext.define('PBS.window.SyncJobEdit', {
|
||||||
me.method = id ? 'PUT' : 'POST';
|
me.method = id ? 'PUT' : 'POST';
|
||||||
me.autoLoad = !!id;
|
me.autoLoad = !!id;
|
||||||
me.scheduleValue = id ? null : 'hourly';
|
me.scheduleValue = id ? null : 'hourly';
|
||||||
|
me.userid = id ? null : Proxmox.UserName;
|
||||||
return { };
|
return { };
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -140,11 +141,8 @@ Ext.define('PBS.window.SyncJobEdit', {
|
||||||
fieldLabel: gettext('Local Owner'),
|
fieldLabel: gettext('Local Owner'),
|
||||||
xtype: 'pbsUserSelector',
|
xtype: 'pbsUserSelector',
|
||||||
name: 'owner',
|
name: 'owner',
|
||||||
allowBlank: true,
|
|
||||||
value: null,
|
|
||||||
emptyText: 'root@pam',
|
|
||||||
skipEmptyText: true,
|
|
||||||
cbind: {
|
cbind: {
|
||||||
|
value: '{userid}',
|
||||||
deleteEmpty: '{!isCreate}',
|
deleteEmpty: '{!isCreate}',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue