RRDChart.js: add the noTool parameter

so that we can omit the panel header

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-10-10 15:10:24 +02:00 committed by Dietmar Maurer
parent 51613acea2
commit fcb5b70f0e

View File

@ -117,6 +117,7 @@ Ext.define('Proxmox.widget.RRDChart', {
me.axes[0].setTitle(axisTitle);
if (!me.noTool) {
me.addTool([{
type: 'minus',
disabled: true,
@ -131,9 +132,13 @@ Ext.define('Proxmox.widget.RRDChart', {
type: 'restore',
tooltip: gettext('Toggle Legend'),
handler: function(){
if (me.legend) {
me.legend.setVisible(!me.legend.isVisible());
}
}
}]);
}
// add a series for each field we get
me.fields.forEach(function(item, index){
var title = item;