From 15808a9023fe9a8f626aadb42d5d30b5c0a9c912 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 12 May 2022 11:47:14 +0200 Subject: [PATCH] ui: add namespace: preselect current NS as parent for new one Signed-off-by: Thomas Lamprecht --- www/datastore/Content.js | 1 + www/window/NamespaceEdit.js | 1 + 2 files changed, 2 insertions(+) diff --git a/www/datastore/Content.js b/www/datastore/Content.js index 58091714..04b0af54 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -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(), }, diff --git a/www/window/NamespaceEdit.js b/www/window/NamespaceEdit.js index 79bf5e52..25761e01 100644 --- a/www/window/NamespaceEdit.js +++ b/www/window/NamespaceEdit.js @@ -34,6 +34,7 @@ Ext.define('PBS.window.NamespaceEdit', { name: 'parent', fieldLabel: gettext('Parent Namespace'), cbind: { + value: '{namespace}', datastore: '{datastore}', }, },