mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-21 23:28:10 +00:00
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:
parent
51613acea2
commit
fcb5b70f0e
@ -117,6 +117,7 @@ Ext.define('Proxmox.widget.RRDChart', {
|
|||||||
|
|
||||||
me.axes[0].setTitle(axisTitle);
|
me.axes[0].setTitle(axisTitle);
|
||||||
|
|
||||||
|
if (!me.noTool) {
|
||||||
me.addTool([{
|
me.addTool([{
|
||||||
type: 'minus',
|
type: 'minus',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
@ -131,9 +132,13 @@ Ext.define('Proxmox.widget.RRDChart', {
|
|||||||
type: 'restore',
|
type: 'restore',
|
||||||
tooltip: gettext('Toggle Legend'),
|
tooltip: gettext('Toggle Legend'),
|
||||||
handler: function(){
|
handler: function(){
|
||||||
|
if (me.legend) {
|
||||||
me.legend.setVisible(!me.legend.isVisible());
|
me.legend.setVisible(!me.legend.isVisible());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
}
|
||||||
|
|
||||||
// add a series for each field we get
|
// add a series for each field we get
|
||||||
me.fields.forEach(function(item, index){
|
me.fields.forEach(function(item, index){
|
||||||
var title = item;
|
var title = item;
|
||||||
|
Loading…
Reference in New Issue
Block a user