]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
change default proxy test to noneText
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 18 Jul 2016 07:37:18 +0000 (09:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 18 Jul 2016 10:40:59 +0000 (12:40 +0200)
instead of having "Do not use a proxy" simply
use PVE.Utils.noneText, which defaults to 'none'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
www/manager6/dc/OptionView.js

index 2149cb057df80762ba9e4e99fb7adf30b8351793..fe8b0d15f998ecf4582730b3670a053d4d1ea297 100644 (file)
@@ -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;
                }