mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-07-27 15:13:47 +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',
|
||||
},
|
||||
|
||||
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() {
|
||||
var me = this;
|
||||
|
||||
@ -46,6 +73,8 @@ Ext.define('PMG.SystemOptions', {
|
||||
me.add_text_row('email', gettext("Administrator EMail"),
|
||||
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
||||
|
||||
me.add_proxy_row('http_proxy', gettext("HTTP proxy"));
|
||||
|
||||
me.callParent();
|
||||
|
||||
me.on('activate', me.rstore.startUpdate);
|
||||
|
Loading…
Reference in New Issue
Block a user