From 31aa38b68425d8b1f060e4e6ffe2dfac8a4d91bb Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 11 May 2022 17:20:29 +0200 Subject: [PATCH] ui: verify job: fix add-job on datastore-agnostic level Signed-off-by: Thomas Lamprecht --- www/window/VerifyJobEdit.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/www/window/VerifyJobEdit.js b/www/window/VerifyJobEdit.js index 16933db5..c517e6d2 100644 --- a/www/window/VerifyJobEdit.js +++ b/www/window/VerifyJobEdit.js @@ -34,6 +34,20 @@ Ext.define('PBS.window.VerifyJobEdit', { '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: { xtype: 'inputpanel',