ui: verify job: fix add-job on datastore-agnostic level

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-11 17:20:29 +02:00
parent 9d8090626c
commit 31aa38b684
1 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,20 @@ Ext.define('PBS.window.VerifyJobEdit', {
'ignoreVerified': true, 'ignoreVerified': true,
}, },
}, },
controller: {
xclass: 'Ext.app.ViewController',
control: {
'pbsDataStoreSelector': {
change: 'storeChange',
},
},
storeChange: function(field, value) {
let view = this.getView();
let nsSelector = view.down('pbsNamespaceSelector');
nsSelector.setDatastore(value);
},
},
items: { items: {
xtype: 'inputpanel', xtype: 'inputpanel',