mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-05-29 07:04:15 +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,
|
columns: columns,
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload
|
activate: reload
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -136,7 +136,7 @@ Ext.define('PVE.dc.AuthView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -448,7 +448,7 @@ Ext.define('PVE.dc.BackupView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -100,7 +100,7 @@ Ext.define('PVE.dc.GroupView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -186,12 +186,11 @@ Ext.define('PVE.dc.OptionView', {
|
|||||||
tbar: [ edit_btn ],
|
tbar: [ edit_btn ],
|
||||||
rows: rows,
|
rows: rows,
|
||||||
listeners: {
|
listeners: {
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor,
|
||||||
|
activate: reload
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.on('show', reload);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -100,7 +100,7 @@ Ext.define('PVE.dc.PoolView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -52,7 +52,7 @@ Ext.define('PVE.dc.RoleView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: function() {
|
activate: function() {
|
||||||
store.load();
|
store.load();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -245,7 +245,7 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -128,7 +128,7 @@ Ext.define('PVE.dc.Summary', {
|
|||||||
layout: 'border',
|
layout: 'border',
|
||||||
items: [ nodegrid ],
|
items: [ nodegrid ],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: function() {
|
activate: function() {
|
||||||
nodegrid.fireEvent('show', nodegrid);
|
nodegrid.fireEvent('show', nodegrid);
|
||||||
},
|
},
|
||||||
hide: function() {
|
hide: function() {
|
||||||
|
@ -69,7 +69,7 @@ Ext.define('PVE.dc.Support', {
|
|||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
bodyStyle: 'padding:10px',
|
bodyStyle: 'padding:10px',
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload
|
activate: reload
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -225,7 +225,7 @@ Ext.define('PVE.dc.UserView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload,
|
activate: reload,
|
||||||
itemdblclick: run_editor
|
itemdblclick: run_editor
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -198,7 +198,7 @@ Ext.define('PVE.grid.BackupView', {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
listeners: {
|
listeners: {
|
||||||
show: reload
|
activate: reload
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user