ui: sync job: use namespace selector for localNS
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
8c29bca57c
commit
0e3de42aa7
@ -32,6 +32,22 @@ Ext.define('PBS.window.SyncJobEdit', {
|
|||||||
return { };
|
return { };
|
||||||
},
|
},
|
||||||
|
|
||||||
|
controller: {
|
||||||
|
xclass: 'Ext.app.ViewController',
|
||||||
|
control: {
|
||||||
|
'pbsDataStoreSelector[name=store]': {
|
||||||
|
change: 'storeChange',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
storeChange: function(field, value) {
|
||||||
|
let view = this.getView();
|
||||||
|
let nsSelector = view.down('pbsNamespaceSelector[name=ns]');
|
||||||
|
nsSelector.setDatastore(value);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
items: {
|
items: {
|
||||||
xtype: 'tabpanel',
|
xtype: 'tabpanel',
|
||||||
bodyPadding: 10,
|
bodyPadding: 10,
|
||||||
@ -69,19 +85,13 @@ Ext.define('PBS.window.SyncJobEdit', {
|
|||||||
allowBlank: false,
|
allowBlank: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// TODO: make this hot-reloadable based on local store selection?
|
|
||||||
{
|
{
|
||||||
xtype: 'pmxDisplayEditField',
|
xtype: 'pbsNamespaceSelector',
|
||||||
fieldLabel: gettext('Local Namespace'),
|
fieldLabel: gettext('Local Namespace'),
|
||||||
name: 'ns',
|
name: 'ns',
|
||||||
cbind: {
|
cbind: {
|
||||||
datastore: '{datastore}',
|
datastore: '{datastore}',
|
||||||
},
|
},
|
||||||
editable: true,
|
|
||||||
submitValue: true,
|
|
||||||
//editConfig: {
|
|
||||||
// xtype: 'pbsNamespaceSelector',
|
|
||||||
//},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldLabel: gettext('Local Owner'),
|
fieldLabel: gettext('Local Owner'),
|
||||||
|
Loading…
Reference in New Issue
Block a user