ui: use AuthidSelector for sync job owner

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2020-11-06 13:01:57 +01:00 committed by Thomas Lamprecht
parent db8a606707
commit d923671a7b

View File

@ -112,7 +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; me.authid = id ? null : Proxmox.UserName;
return { }; return { };
}, },
@ -139,10 +139,10 @@ Ext.define('PBS.window.SyncJobEdit', {
}, },
{ {
fieldLabel: gettext('Local Owner'), fieldLabel: gettext('Local Owner'),
xtype: 'pbsUserSelector', xtype: 'pbsAuthidSelector',
name: 'owner', name: 'owner',
cbind: { cbind: {
value: '{userid}', value: '{authid}',
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
}, },
}, },