[pve-devel] [PATCH manager] change default proxy test to noneText

Dominik Csapak d.csapak at proxmox.com
Mon Jul 18 09:37:18 CEST 2016


instead of having "Do not use a proxy" simply
use PVE.Utils.noneText, which defaults to 'none'

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 www/manager6/dc/OptionView.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/www/manager6/dc/OptionView.js b/www/manager6/dc/OptionView.js
index 2149cb0..fe8b0d1 100644
--- a/www/manager6/dc/OptionView.js
+++ b/www/manager6/dc/OptionView.js
@@ -10,7 +10,7 @@ Ext.define('PVE.dc.HttpProxyEdit', {
 		xtype: 'pvetextfield',
 		name: 'http_proxy',
 		vtype: 'HttpProxy',
-		emptyText: gettext('Do not use any proxy'),
+		emptyText: PVE.Utils.noneText,
 		deleteEmpty: true,
 		value: '',
 		fieldLabel: gettext('HTTP proxy')
@@ -103,8 +103,6 @@ Ext.define('PVE.dc.OptionView', {
     extend: 'PVE.grid.ObjectGrid',
     alias: ['widget.pveDcOptionView'],
 
-    noProxyText: gettext('Do not use any proxy'),
-
     initComponent : function() {
 	var me = this;
 
@@ -125,7 +123,7 @@ Ext.define('PVE.dc.OptionView', {
 		required: true,
 		renderer: function(value) {
 		    if (!value) {
-			return me.noProxyText;
+			return PVE.Utils.noneText;
 		    }
 		    return value;
 		}
-- 
2.1.4





More information about the pve-devel mailing list