]> git.proxmox.com Git - proxmox-backup.git/commitdiff
ui: add new options tab under configuration
authorHannes Laimer <h.laimer@proxmox.com>
Mon, 3 Jan 2022 09:04:56 +0000 (10:04 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 4 Jan 2022 07:24:17 +0000 (08:24 +0100)
... and add from-email + move http-proxy there

Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
www/SystemConfiguration.js
www/config/NodeOptionView.js

index 86371193f97f1319c360925017fa6fd39ccf45bc..ac24bff951d4ccd28ae697785e294690231f2a95 100644 (file)
@@ -63,9 +63,25 @@ Ext.define('PBS.SystemConfiguration', {
                    title: gettext('Webauthn'),
                    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('HTTP proxy'),
+                   title: gettext('General'),
                    xtype: 'pbsNodeOptionView',
                },
            ],
@@ -86,6 +102,11 @@ Ext.define('PBS.SystemConfiguration', {
        Ext.Array.forEach(authentication.query(), function(item) {
            item.relayEvents(authentication, ['activate', 'deactivate', 'destroy']);
        });
+
+       let options = me.getComponent('options');
+       Ext.Array.forEach(options.query(), function(item) {
+           item.relayEvents(options, ['activate', 'deactivate', 'destroy']);
+       });
     },
 });
 
index 55271a91cc01fbe36c0a871dbf0058c423056ea1..64f3d7924048c40b57405f5498dd423eb67ff8da 100644 (file)
@@ -34,6 +34,15 @@ Ext.define('PBS.NodeOptionView', {
            deleteEmpty: true,
            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() {