mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-28 01:13:39 +00:00
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:
parent
424c12694e
commit
c0b3df6e34
@ -222,7 +222,7 @@ Ext.define('PVE.dc.ACLView', {
|
||||
},
|
||||
columns: columns,
|
||||
listeners: {
|
||||
show: reload
|
||||
activate: reload
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -136,7 +136,7 @@ Ext.define('PVE.dc.AuthView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -448,7 +448,7 @@ Ext.define('PVE.dc.BackupView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -100,7 +100,7 @@ Ext.define('PVE.dc.GroupView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
@ -100,7 +100,7 @@ Ext.define('PVE.dc.PoolView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -52,7 +52,7 @@ Ext.define('PVE.dc.RoleView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: function() {
|
||||
activate: function() {
|
||||
store.load();
|
||||
}
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ Ext.define('PVE.dc.StorageView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -128,7 +128,7 @@ Ext.define('PVE.dc.Summary', {
|
||||
layout: 'border',
|
||||
items: [ nodegrid ],
|
||||
listeners: {
|
||||
show: function() {
|
||||
activate: function() {
|
||||
nodegrid.fireEvent('show', nodegrid);
|
||||
},
|
||||
hide: function() {
|
||||
|
@ -69,7 +69,7 @@ Ext.define('PVE.dc.Support', {
|
||||
autoScroll: true,
|
||||
bodyStyle: 'padding:10px',
|
||||
listeners: {
|
||||
show: reload
|
||||
activate: reload
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -225,7 +225,7 @@ Ext.define('PVE.dc.UserView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload,
|
||||
activate: reload,
|
||||
itemdblclick: run_editor
|
||||
}
|
||||
});
|
||||
|
@ -198,7 +198,7 @@ Ext.define('PVE.grid.BackupView', {
|
||||
}
|
||||
],
|
||||
listeners: {
|
||||
show: reload
|
||||
activate: reload
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user