ui: add new options tab under configuration
... and add from-email + move http-proxy there Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
This commit is contained in:
parent
e466526137
commit
c772a4a683
|
@ -63,9 +63,25 @@ Ext.define('PBS.SystemConfiguration', {
|
||||||
title: gettext('Webauthn'),
|
title: gettext('Webauthn'),
|
||||||
xtype: 'pbsWebauthnConfigView',
|
xtype: 'pbsWebauthnConfigView',
|
||||||
},
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: gettext('Options'),
|
||||||
|
itemId: 'options',
|
||||||
|
xtype: 'panel',
|
||||||
|
layout: {
|
||||||
|
type: 'vbox',
|
||||||
|
align: 'stretch',
|
||||||
|
multi: true,
|
||||||
|
},
|
||||||
|
defaults: {
|
||||||
|
collapsible: true,
|
||||||
|
animCollapse: false,
|
||||||
|
margin: '10 10 0 10',
|
||||||
|
},
|
||||||
|
items: [
|
||||||
{
|
{
|
||||||
// FIXME: this is only a semi-OK place as long as there's only the http-proxy in there
|
title: gettext('General'),
|
||||||
title: gettext('HTTP proxy'),
|
|
||||||
xtype: 'pbsNodeOptionView',
|
xtype: 'pbsNodeOptionView',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
@ -86,6 +102,11 @@ Ext.define('PBS.SystemConfiguration', {
|
||||||
Ext.Array.forEach(authentication.query(), function(item) {
|
Ext.Array.forEach(authentication.query(), function(item) {
|
||||||
item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
|
item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let options = me.getComponent('options');
|
||||||
|
Ext.Array.forEach(options.query(), function(item) {
|
||||||
|
item.relayEvents(options, ['activate', 'deactivate', 'destroy']);
|
||||||
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,15 @@ Ext.define('PBS.NodeOptionView', {
|
||||||
deleteEmpty: true,
|
deleteEmpty: true,
|
||||||
onlineHelp: 'node_options_http_proxy',
|
onlineHelp: 'node_options_http_proxy',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
xtype: 'text',
|
||||||
|
name: 'email-from',
|
||||||
|
defaultValue: gettext('root@$hostname'),
|
||||||
|
text: gettext('Email from address'),
|
||||||
|
vtype: 'proxmoxMail',
|
||||||
|
deleteEmpty: true,
|
||||||
|
},
|
||||||
|
|
||||||
],
|
],
|
||||||
|
|
||||||
initComponent: function() {
|
initComponent: function() {
|
||||||
|
|
Loading…
Reference in New Issue