This corresponds to the `ballooning-target` node config option.

Also make the left column slightly wider, so the texts fit better.

Signed-off-by: Friedrich Weber <f.we...@proxmox.com>
---
 www/manager6/node/NodeOptionsView.js | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/www/manager6/node/NodeOptionsView.js 
b/www/manager6/node/NodeOptionsView.js
index 661c0e90..53443bfd 100644
--- a/www/manager6/node/NodeOptionsView.js
+++ b/www/manager6/node/NodeOptionsView.js
@@ -3,6 +3,8 @@ Ext.define('Proxmox.node.NodeOptionsView', {
     alias: ['widget.proxmoxNodeOptionsView'],
     mixins: ['Proxmox.Mixin.CBind'],
 
+    cwidth1: 250,
+
     cbindData: function(_initialconfig) {
        let me = this;
 
@@ -64,5 +66,21 @@ Ext.define('Proxmox.node.NodeOptionsView', {
                return value;
            },
        },
+       {
+           xtype: 'integer',
+           name: 'ballooning-target',
+           text: gettext('RAM usage target for ballooning'),
+           minValue: 0,
+           maxValue: 100,
+           deleteEmpty: true,
+           onlineHelp: 'qm_memory',
+           renderer: function(value) {
+               if (value === undefined) {
+                   return gettext('Default (80%)');
+               }
+
+               return Ext.htmlEncode(`${value}%`);
+           },
+       },
     ],
 });
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to