fix #2864: add owner option to sync

instead of hard-coding 'backup@pam'. this allows a bit more flexibility
(e.g., syncing to a datastore that can directly be used as restore
source) without overly complicating things.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2020-10-30 12:36:41 +01:00
committed by Dietmar Maurer
parent fa7aceeb15
commit f1694b062d
5 changed files with 61 additions and 6 deletions

View File

@ -62,6 +62,26 @@ Ext.define('PBS.window.SyncJobEdit', {
],
column2: [
{
fieldLabel: gettext('Owner'),
xtype: 'pbsUserSelector',
name: 'owner',
allowBlank: true,
emptyText: 'backup@pam',
getSubmitData: function() {
let me = this;
let name = me.getName();
let val = me.getSubmitValue();
let data = {};
if (val === null || val === "") {
data.delete = name;
} else {
data[name] = val;
}
return data;
},
},
{
fieldLabel: gettext('Remove vanished'),
xtype: 'proxmoxcheckbox',