ui: tape/Backup: add namespace + max-depth to backup job edit window

like we do for sync

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2022-05-13 09:09:14 +02:00
parent 80df7caded
commit 6f836d3ffa
1 changed files with 27 additions and 0 deletions

View File

@ -29,6 +29,21 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
return { }; return { };
}, },
controller: {
xclass: 'Ext.app.ViewController',
control: {
'pbsDataStoreSelector[name=store]': {
change: 'storeChange',
},
},
storeChange: function(field, value) {
let me = this;
let nsSelector = me.lookup('namespace');
nsSelector.setDatastore(value);
},
},
items: { items: {
xtype: 'tabpanel', xtype: 'tabpanel',
bodyPadding: 10, bodyPadding: 10,
@ -68,6 +83,12 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
}, },
}, },
}, },
{
xtype: 'pbsNamespaceSelector',
fieldLabel: gettext('Local Namespace'),
reference: 'namespace',
name: 'ns',
},
{ {
xtype: 'pbsMediaPoolSelector', xtype: 'pbsMediaPoolSelector',
fieldLabel: gettext('Media Pool'), fieldLabel: gettext('Media Pool'),
@ -134,6 +155,12 @@ Ext.define('PBS.TapeManagement.BackupJobEdit', {
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
}, },
}, },
{
xtype: 'pbsNamespaceMaxDepth',
name: 'max-depth',
fieldLabel: gettext('Max. Depth'),
deleteEmpty: true,
},
], ],
columnB: [ columnB: [