ui: avoid ascending to upper NS on double click of current

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

View File

@ -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) {