]> git.proxmox.com Git - proxmox-widget-toolkit.git/commitdiff
Toolkit: set download url for draw containers to '-'
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 26 May 2021 08:58:30 +0000 (10:58 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 27 May 2021 11:37:36 +0000 (13:37 +0200)
so that there can be no privacy leak, since the default points
to senchas server

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/Toolkit.js
src/panel/GaugeWidget.js
src/panel/RRDChart.js

index ffbd47a64a877a4a0d50fb463db50fa1d2c2d928..67871733e5edf41368e6985ce0d69cc7c16ae354 100644 (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
 // since Ext.Msg is an object and not a prototype, we need to override it
 // after the framework has been initiated
index 6cd6b602a54bbea4e1957327b0558101a40bea19..0cc2079c1226fd542ae0848fba5e05edcbafd6f5 100644 (file)
@@ -20,6 +20,8 @@ Ext.define('Proxmox.panel.GaugeWidget', {
            xtype: 'polar',
            height: 120,
            border: false,
+           // set to '-' to suppress warning in debug mode
+           downloadServerUrl: '-',
            itemId: 'chart',
            series: [{
                type: 'gauge',
index 41c839efec87a75709e75505811bf54aa7358e2a..49b3ad236871ee65f5cbf4f780219df4208508cf 100644 (file)
@@ -61,6 +61,9 @@ Ext.define('Proxmox.widget.RRDChart', {
 
     powerOfTwo: false,
 
+    // set to empty string to suppress warning in debug mode
+    downloadServerUrl: '-',
+
     controller: {
        xclass: 'Ext.app.ViewController',