pve-manager/www/manager6/pool/StatusView.js
Emmanuel Kasper 8c70732ba9 set 'disabled' for grid panels which disaply a read only, not sortable content
* closes the bug #976
 * minor usability improvement: having a clickable row where
 no action was possible is a bit misleading
2016-05-17 12:07:07 +02:00

34 lines
588 B
JavaScript

Ext.define('PVE.pool.StatusView', {
extend: 'PVE.grid.ObjectGrid',
alias: ['widget.pvePoolStatusView'],
disabled: true,
title: gettext('Status'),
cwidth1: 150,
interval: 30000,
//height: 195,
initComponent : function() {
var me = this;
var pool = me.pveSelNode.data.pool;
if (!pool) {
throw "no pool specified";
}
var rows = {
comment: {
header: gettext('Comment'),
renderer: Ext.String.htmlEncode,
required: true
}
};
Ext.apply(me, {
url: "/api2/json/pools/" + pool,
rows: rows
});
me.callParent();
}
});