Commit b263f59c authored by Dietmar Maurer's avatar Dietmar Maurer

fix folder view

parent 996d34c3
......@@ -180,12 +180,12 @@ Ext.define('PVE.StdWorkspace', {
cont.removeAll(true);
if (comp) {
cont.setLoading(false);
PVE.Utils.setErrorMask(cont, false);
comp.border = false;
cont.add(comp);
cont.doLayout();
} else {
cont.setLoading('nothing selected');
PVE.Utils.setErrorMask(cont, 'nothing selected');
}
},
......@@ -252,7 +252,7 @@ Ext.define('PVE.StdWorkspace', {
var n = selected[0];
comp = {
xtype: tlckup[n.data.type || 'root'] ||
'PVE.panel.Config',
'pvePanelConfig',
layout: { type: 'fit' },
showSearch: (n.data.id === 'root') ||
Ext.isDefined(n.data.groupbyid),
......
Ext.define('PVE.panel.Config', {
extend: 'Ext.panel.Panel',
alias: 'widget.pvePanelConfig',
initComponent: function() {
var me = this;
......@@ -62,7 +63,10 @@ Ext.define('PVE.panel.Config', {
items: items,
listeners: {
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) {
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