sync: add group filtering
like for manual pulls, but persisted in the sync job config and visible in the relevant GUI parts. GUI is read-only for now (and defaults to no filtering on creation), as this is a rather advanced feature that requires a complex GUI to be user-friendly (regex-freeform, type-combobox, remote group scanning + selector with additional freeform input). Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
71e534631f
commit
5f83d3f636
@ -1,7 +1,7 @@
|
||||
Ext.define('pbs-sync-jobs-status', {
|
||||
extend: 'Ext.data.Model',
|
||||
fields: [
|
||||
'id', 'owner', 'remote', 'remote-store', 'store', 'schedule',
|
||||
'id', 'owner', 'remote', 'remote-store', 'store', 'schedule', 'groups',
|
||||
'next-run', 'last-run-upid', 'last-run-state', 'last-run-endtime',
|
||||
{
|
||||
name: 'duration',
|
||||
@ -214,6 +214,12 @@ Ext.define('PBS.config.SyncJobView', {
|
||||
flex: 2,
|
||||
sortable: true,
|
||||
},
|
||||
{
|
||||
header: gettext('Backup Groups'),
|
||||
dataIndex: 'groups',
|
||||
renderer: v => v ? Ext.String.htmlEncode(v) : gettext('All'),
|
||||
width: 80,
|
||||
},
|
||||
{
|
||||
header: gettext('Schedule'),
|
||||
dataIndex: 'schedule',
|
||||
|
@ -199,6 +199,15 @@ Ext.define('PBS.window.SyncJobEdit', {
|
||||
],
|
||||
|
||||
columnB: [
|
||||
{
|
||||
fieldLabel: gettext('Backup Groups'),
|
||||
xtype: 'displayfield',
|
||||
name: 'groups',
|
||||
renderer: v => v ? Ext.String.htmlEncode(v) : gettext('All'),
|
||||
cbind: {
|
||||
hidden: '{isCreate}',
|
||||
},
|
||||
},
|
||||
{
|
||||
fieldLabel: gettext('Comment'),
|
||||
xtype: 'proxmoxtextfield',
|
||||
|
Reference in New Issue
Block a user