diff --git a/static/plugin_dbui/src/container/Viewport.js b/static/plugin_dbui/src/container/Viewport.js index d93f1d9e678e05634437ba577911380adc32074a..7b546bcdfbe1993d6d93cd1ad0e75984fd6e583a 100644 --- a/static/plugin_dbui/src/container/Viewport.js +++ b/static/plugin_dbui/src/container/Viewport.js @@ -203,7 +203,7 @@ Ext.define('App.container.Viewport', { window; // protection - if (!record.isNode) { + if (!record.isNode || !item) { return; } @@ -232,8 +232,8 @@ Ext.define('App.container.Viewport', { return; } - // unique tab identifier - tabId = record.get('text') + '/' + wdgtype; + // unique tab identifier based on the node path + tabId = record.getPath('text', '_'); // activate an existing tab if (this.tabPanel.getComponent(tabId)) { diff --git a/views/plugin_dbui/versions.html b/views/plugin_dbui/versions.html index da008a1e4187631e0cf5356a61d30f21eb63cbe9..e4fc6fadd90e262164c9398c6ab145d3ff5937e0 100644 --- a/views/plugin_dbui/versions.html +++ b/views/plugin_dbui/versions.html @@ -41,14 +41,14 @@ plugins: ['pGridExport'], store: cfgStore, columns: [ - {text: "Software", dataIndex: 'code', flex: 0.8}, - {text: "Version", dataIndex: 'version', flex: 1.2} + {text: "Software", dataIndex: 'code'}, + {text: "Version", dataIndex: 'version'} ], forceFit: true, hideHeaders: true, padding: "10 40 20 60", renderTo: divgrid, - width: 300 + width: 400 }); </script>