mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-27 11:46:44 +00:00
copy pool/StatusView.js from manager to manager5
This commit is contained in:
parent
a93fcb893f
commit
c801943bb5
31
www/manager5/pool/StatusView.js
Normal file
31
www/manager5/pool/StatusView.js
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
Ext.define('PVE.pool.StatusView', {
|
||||||
|
extend: 'PVE.grid.ObjectGrid',
|
||||||
|
alias: ['widget.pvePoolStatusView'],
|
||||||
|
|
||||||
|
initComponent : function() {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
var pool = me.pveSelNode.data.pool;
|
||||||
|
if (!pool) {
|
||||||
|
throw "no pool specified";
|
||||||
|
}
|
||||||
|
|
||||||
|
var rows = {
|
||||||
|
comment: {
|
||||||
|
header: gettext('Comment'),
|
||||||
|
required: true
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
Ext.applyIf(me, {
|
||||||
|
title: gettext('Status'),
|
||||||
|
url: "/api2/json/pools/" + pool,
|
||||||
|
cwidth1: 150,
|
||||||
|
interval: 30000,
|
||||||
|
//height: 195,
|
||||||
|
rows: rows
|
||||||
|
});
|
||||||
|
|
||||||
|
me.callParent();
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user