From f4d246072dffa8c139eef635254d4b3541fa237c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 12 May 2022 11:48:27 +0200 Subject: [PATCH] ui: avoid ascending to upper NS on double click of current Signed-off-by: Thomas Lamprecht --- www/datastore/Content.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/www/datastore/Content.js b/www/datastore/Content.js index 04b0af54..635c820b 100644 --- a/www/datastore/Content.js +++ b/www/datastore/Content.js @@ -88,10 +88,9 @@ Ext.define('PBS.DataStoreContent', { }, rowDoubleClicked: function(table, rec, el, rowId, ev) { - if (rec?.data?.ty !== 'ns') { - return; + if (rec?.data?.ty === 'ns' && !rec.data.root) { + this.nsChange(null, rec.data.ns); } - this.nsChange(null, rec.data.ns); }, nsChange: function(field, value) {