[pbs-devel] [PATCH proxmox-backup 4/4] ui: require owner for sync jobs
Dietmar Maurer
dietmar at proxmox.com
Fri Nov 6 08:11:38 CET 2020
---
www/window/SyncJobEdit.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/www/window/SyncJobEdit.js b/www/window/SyncJobEdit.js
index df1f2c5b..bb9540a6 100644
--- a/www/window/SyncJobEdit.js
+++ b/www/window/SyncJobEdit.js
@@ -112,6 +112,7 @@ Ext.define('PBS.window.SyncJobEdit', {
me.method = id ? 'PUT' : 'POST';
me.autoLoad = !!id;
me.scheduleValue = id ? null : 'hourly';
+ me.userid = id ? null : Proxmox.UserName;
return { };
},
@@ -140,11 +141,8 @@ Ext.define('PBS.window.SyncJobEdit', {
fieldLabel: gettext('Local Owner'),
xtype: 'pbsUserSelector',
name: 'owner',
- allowBlank: true,
- value: null,
- emptyText: 'root at pam',
- skipEmptyText: true,
cbind: {
+ value: '{userid}',
deleteEmpty: '{!isCreate}',
},
},
--
2.20.1
More information about the pbs-devel
mailing list