Toolkit: set download url for draw containers to '-'

so that there can be no privacy leak, since the default points
to senchas server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2021-05-26 10:58:30 +02:00 committed by Thomas Lamprecht
parent fba354621f
commit 518dd0b6d9
3 changed files with 8 additions and 0 deletions

View File

@ -659,6 +659,9 @@ Ext.define('Proxmox.selection.CheckboxModel', {
}, },
}); });
// override the download server url globally, for privacy reasons
Ext.draw.Container.prototype.defaultDownloadServerUrl = "-";
// force alert boxes to be rendered with an Error Icon // force alert boxes to be rendered with an Error Icon
// since Ext.Msg is an object and not a prototype, we need to override it // since Ext.Msg is an object and not a prototype, we need to override it
// after the framework has been initiated // after the framework has been initiated

View File

@ -20,6 +20,8 @@ Ext.define('Proxmox.panel.GaugeWidget', {
xtype: 'polar', xtype: 'polar',
height: 120, height: 120,
border: false, border: false,
// set to '-' to suppress warning in debug mode
downloadServerUrl: '-',
itemId: 'chart', itemId: 'chart',
series: [{ series: [{
type: 'gauge', type: 'gauge',

View File

@ -61,6 +61,9 @@ Ext.define('Proxmox.widget.RRDChart', {
powerOfTwo: false, powerOfTwo: false,
// set to empty string to suppress warning in debug mode
downloadServerUrl: '-',
controller: { controller: {
xclass: 'Ext.app.ViewController', xclass: 'Ext.app.ViewController',