ui: tape: show configred group filters

in the grid and in the edit window

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-11-04 10:56:21 +01:00 committed by Thomas Lamprecht
parent c8c5c7f571
commit 8a21566c8a
2 changed files with 16 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Ext.define('pbs-tape-backup-job-status', {
extend: 'Ext.data.Model',
fields: [
'id', 'store', 'pool', 'drive', 'store', 'schedule', 'comment',
'id', 'store', 'pool', 'drive', 'store', 'schedule', 'comment', 'groups',
{ name: 'eject-media', type: 'boolean' },
{ name: 'export-media-set', type: 'boolean' },
{ name: 'latest-only', type: 'boolean' },
@ -221,6 +221,12 @@ Ext.define('PBS.config.TapeBackupJobView', {
renderer: Proxmox.Utils.format_boolean,
sortable: false,
},
{
header: gettext('Backup Groups'),
dataIndex: 'groups',
renderer: v => v ? Ext.String.htmlEncode(v) : gettext('All'),
width: 80,
},
{
header: gettext('Schedule'),
dataIndex: 'schedule',

View File

@ -123,6 +123,15 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
],
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',