mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 09:59:33 +00:00
copy pool/Summary.js from manager to manager5
This commit is contained in:
parent
c801943bb5
commit
3048ca0700
36
www/manager5/pool/Summary.js
Normal file
36
www/manager5/pool/Summary.js
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
Ext.define('PVE.pool.Summary', {
|
||||||
|
extend: 'Ext.panel.Panel',
|
||||||
|
alias: 'widget.pvePoolSummary',
|
||||||
|
|
||||||
|
initComponent: function() {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
var pool = me.pveSelNode.data.pool;
|
||||||
|
if (!pool) {
|
||||||
|
throw "no pool specified";
|
||||||
|
}
|
||||||
|
|
||||||
|
var statusview = Ext.create('PVE.pool.StatusView', {
|
||||||
|
pveSelNode: me.pveSelNode,
|
||||||
|
style: 'padding-top:0px'
|
||||||
|
});
|
||||||
|
|
||||||
|
var rstore = statusview.rstore;
|
||||||
|
|
||||||
|
Ext.apply(me, {
|
||||||
|
autoScroll: true,
|
||||||
|
bodyStyle: 'padding:10px',
|
||||||
|
defaults: {
|
||||||
|
style: 'padding-top:10px',
|
||||||
|
width: 800
|
||||||
|
},
|
||||||
|
items: [ statusview ]
|
||||||
|
});
|
||||||
|
|
||||||
|
me.on('show', rstore.startUpdate);
|
||||||
|
me.on('hide', rstore.stopUpdate);
|
||||||
|
me.on('destroy', rstore.stopUpdate);
|
||||||
|
|
||||||
|
me.callParent();
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user