ui: add namespace: preselect current NS as parent for new one

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2022-05-12 11:47:14 +02:00
parent e22ad28302
commit 15808a9023
2 changed files with 2 additions and 0 deletions

View File

@ -482,6 +482,7 @@ Ext.define('PBS.DataStoreContent', {
Ext.create('PBS.window.NamespaceEdit', {
autoShow: true,
datastore: view.datastore,
namespace: view.namespace ?? '',
listeners: {
destroy: () => view.down('pbsNamespaceSelector').store?.load(),
},

View File

@ -34,6 +34,7 @@ Ext.define('PBS.window.NamespaceEdit', {
name: 'parent',
fieldLabel: gettext('Parent Namespace'),
cbind: {
value: '{namespace}',
datastore: '{datastore}',
},
},