ext6migrate: listen to 'activate' events for panels inside a tabpanel

Using ExtJS6 a browser refresh (F5) do not send the 'show' event which we use to display the store as it did with ExtJS4.

At the momment only for tabs inside the datacenter tabpanel, since node and lxc tabpanels are not yet in manager6/
This commit is contained in:
Emmanuel Kasper 2015-11-23 15:13:12 +01:00 committed by Dietmar Maurer
parent 424c12694e
commit c0b3df6e34
12 changed files with 13 additions and 14 deletions

View File

@ -222,7 +222,7 @@ Ext.define('PVE.dc.ACLView', {
},
columns: columns,
listeners: {
show: reload
activate: reload
}
});

View File

@ -136,7 +136,7 @@ Ext.define('PVE.dc.AuthView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -448,7 +448,7 @@ Ext.define('PVE.dc.BackupView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -100,7 +100,7 @@ Ext.define('PVE.dc.GroupView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -186,12 +186,11 @@ Ext.define('PVE.dc.OptionView', {
tbar: [ edit_btn ],
rows: rows,
listeners: {
itemdblclick: run_editor
itemdblclick: run_editor,
activate: reload
}
});
me.callParent();
me.on('show', reload);
}
});

View File

@ -100,7 +100,7 @@ Ext.define('PVE.dc.PoolView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -52,7 +52,7 @@ Ext.define('PVE.dc.RoleView', {
}
],
listeners: {
show: function() {
activate: function() {
store.load();
}
}

View File

@ -245,7 +245,7 @@ Ext.define('PVE.dc.StorageView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -128,7 +128,7 @@ Ext.define('PVE.dc.Summary', {
layout: 'border',
items: [ nodegrid ],
listeners: {
show: function() {
activate: function() {
nodegrid.fireEvent('show', nodegrid);
},
hide: function() {

View File

@ -69,7 +69,7 @@ Ext.define('PVE.dc.Support', {
autoScroll: true,
bodyStyle: 'padding:10px',
listeners: {
show: reload
activate: reload
}
});

View File

@ -225,7 +225,7 @@ Ext.define('PVE.dc.UserView', {
}
],
listeners: {
show: reload,
activate: reload,
itemdblclick: run_editor
}
});

View File

@ -198,7 +198,7 @@ Ext.define('PVE.grid.BackupView', {
}
],
listeners: {
show: reload
activate: reload
}
});