mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-07-27 13:54:01 +00:00
SystemOptions.js - add http_proxy option
This commit is contained in:
parent
cf2485332b
commit
087dc38ec6
@ -31,6 +31,33 @@ Ext.define('PMG.SystemOptions', {
|
|||||||
itemdblclick: 'onEdit',
|
itemdblclick: 'onEdit',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
add_proxy_row: function(name, text, opts) {
|
||||||
|
var me = this;
|
||||||
|
|
||||||
|
opts = opts || {};
|
||||||
|
me.rows = me.rows || {};
|
||||||
|
|
||||||
|
me.rows[name] = {
|
||||||
|
required: true,
|
||||||
|
defaultValue: Proxmox.Utils.noneText,
|
||||||
|
header: text,
|
||||||
|
editor: {
|
||||||
|
xtype: 'proxmoxWindowEdit',
|
||||||
|
subject: text,
|
||||||
|
items: {
|
||||||
|
xtype: 'proxmoxtextfield',
|
||||||
|
vtype: 'HttpProxy',
|
||||||
|
name: name,
|
||||||
|
deleteEmpty: true,
|
||||||
|
emptyText: Proxmox.Utils.noneText,
|
||||||
|
labelWidth: Proxmox.Utils.compute_min_label_width(
|
||||||
|
text, opts.labelWidth),
|
||||||
|
fieldLabel: text
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
initComponent : function() {
|
initComponent : function() {
|
||||||
var me = this;
|
var me = this;
|
||||||
|
|
||||||
@ -46,6 +73,8 @@ Ext.define('PMG.SystemOptions', {
|
|||||||
me.add_text_row('email', gettext("Administrator EMail"),
|
me.add_text_row('email', gettext("Administrator EMail"),
|
||||||
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
||||||
|
|
||||||
|
me.add_proxy_row('http_proxy', gettext("HTTP proxy"));
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
me.on('activate', me.rstore.startUpdate);
|
me.on('activate', me.rstore.startUpdate);
|
||||||
|
Loading…
Reference in New Issue
Block a user