]> git.proxmox.com Git - pve-manager.git/commitdiff
ui; datacenter options: add next-id editor
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 18:34:37 +0000 (20:34 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 27 Apr 2022 18:34:37 +0000 (20:34 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/manager6/dc/OptionView.js

index bd9f8f0666ecba4dca2ec99bf3df1c4396fb9629..51696982d7b35877a3a9a6972ea98018ef84dd99 100644 (file)
@@ -284,6 +284,27 @@ Ext.define('PVE.dc.OptionView', {
            minValue: 1,
            maxValue: 64, // arbitrary but generous limit as limits are good
        });
+       me.add_inputpanel_row('next-id', gettext('Next Free VMID Range'), {
+           renderer: PVE.Utils.render_as_property_string,
+           url: "/api2/extjs/cluster/options",
+           items: [{
+               xtype: 'proxmoxintegerfield',
+               name: 'lower',
+               fieldLabel: gettext('Lower'),
+               emptyText: '100',
+               minValue: 100,
+               maxValue: 1000 * 1000 * 1000 - 1,
+               submitValue: true,
+           }, {
+               xtype: 'proxmoxintegerfield',
+               name: 'upper',
+               fieldLabel: gettext('Upper'),
+               emptyText: '1.000.000',
+               minValue: 100,
+               maxValue: 1000 * 1000 * 1000 - 1,
+               submitValue: true,
+           }],
+       });
 
        me.selModel = Ext.create('Ext.selection.RowModel', {});