Commit b263f59c authored by Dietmar Maurer's avatar Dietmar Maurer

fix folder view

parent 996d34c3
...@@ -180,12 +180,12 @@ Ext.define('PVE.StdWorkspace', { ...@@ -180,12 +180,12 @@ Ext.define('PVE.StdWorkspace', {
cont.removeAll(true); cont.removeAll(true);
if (comp) { if (comp) {
cont.setLoading(false); PVE.Utils.setErrorMask(cont, false);
comp.border = false; comp.border = false;
cont.add(comp); cont.add(comp);
cont.doLayout(); cont.doLayout();
} else { } else {
cont.setLoading('nothing selected'); PVE.Utils.setErrorMask(cont, 'nothing selected');
} }
}, },
...@@ -252,7 +252,7 @@ Ext.define('PVE.StdWorkspace', { ...@@ -252,7 +252,7 @@ Ext.define('PVE.StdWorkspace', {
var n = selected[0]; var n = selected[0];
comp = { comp = {
xtype: tlckup[n.data.type || 'root'] || xtype: tlckup[n.data.type || 'root'] ||
'PVE.panel.Config', 'pvePanelConfig',
layout: { type: 'fit' }, layout: { type: 'fit' },
showSearch: (n.data.id === 'root') || showSearch: (n.data.id === 'root') ||
Ext.isDefined(n.data.groupbyid), Ext.isDefined(n.data.groupbyid),
......
Ext.define('PVE.panel.Config', { Ext.define('PVE.panel.Config', {
extend: 'Ext.panel.Panel', extend: 'Ext.panel.Panel',
alias: 'widget.pvePanelConfig',
initComponent: function() { initComponent: function() {
var me = this; var me = this;
...@@ -62,7 +63,10 @@ Ext.define('PVE.panel.Config', { ...@@ -62,7 +63,10 @@ Ext.define('PVE.panel.Config', {
items: items, items: items,
listeners: { listeners: {
afterrender: function(tp) { afterrender: function(tp) {
tp.items.get(0).fireEvent('show', tp.items.get(0)); var first = tp.items.get(0);
if (first) {
first.fireEvent('show', first);
}
}, },
tabchange: function(tp, newcard, oldcard) { tabchange: function(tp, newcard, oldcard) {
var ntab = newcard.itemId; var ntab = newcard.itemId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment