From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9AB2473711 for ; Fri, 28 May 2021 14:14:14 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 94EF9960A for ; Fri, 28 May 2021 14:13:44 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id B8EEF95E5 for ; Fri, 28 May 2021 14:13:42 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 8D840466C0 for ; Fri, 28 May 2021 14:13:42 +0200 (CEST) From: Dominik Csapak To: pve-devel@lists.proxmox.com Date: Fri, 28 May 2021 14:13:39 +0200 Message-Id: <20210528121341.16026-2-d.csapak@proxmox.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210528121341.16026-1-d.csapak@proxmox.com> References: <20210528121341.16026-1-d.csapak@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -1.567 Adjusted score from AWL reputation of From: address ENA_SUBJ_ODD_CASE 3.2 Subject has odd case KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: [pve-devel] [PATCH widget-toolkit 1/3] Toolkit: move defaultDownloadServerUrl override to panel/RRDChart X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 May 2021 12:14:14 -0000 not all users of Toolkit.js have the charts lib loaded, which means the class does not exist then. Signed-off-by: Dominik Csapak --- src/Toolkit.js | 3 --- src/panel/RRDChart.js | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Toolkit.js b/src/Toolkit.js index 6f1aee9..a08af4e 100644 --- a/src/Toolkit.js +++ b/src/Toolkit.js @@ -664,9 +664,6 @@ Ext.define('Proxmox.selection.CheckboxModel', { }, }); -// override the download server url globally, for privacy reasons -Ext.draw.Container.prototype.defaultDownloadServerUrl = "-"; - // stop nulling of properties Ext.define('Proxmox.Component', { override: 'Ext.Component', diff --git a/src/panel/RRDChart.js b/src/panel/RRDChart.js index 517c45d..d63170e 100644 --- a/src/panel/RRDChart.js +++ b/src/panel/RRDChart.js @@ -1,3 +1,6 @@ +// override the download server url globally, for privacy reasons +Ext.draw.Container.prototype.defaultDownloadServerUrl = "-"; + Ext.define('Proxmox.chart.axis.segmenter.NumericBase2', { extend: 'Ext.chart.axis.segmenter.Numeric', alias: 'segmenter.numericBase2', -- 2.20.1