Re: [pve-devel] [PATCH v4 manager 6/6] ui: util: refactor mps to mp

2022-03-24 Thread Aaron Lauterer
On 3/22/22 12:18, Fabian Ebner wrote: Am 14.03.22 um 10:35 schrieb Aaron Lauterer: @@ -1805,9 +1805,7 @@ Ext.define('PVE.Utils', { }, nextFreeMP: function(type, config) { - let mptype = type === "mp" ? "mps" : type; - - for (let i = 0; i < PVE.Utils.mp_counts[mptyp

Re: [pve-devel] [PATCH v4 manager 6/6] ui: util: refactor mps to mp

2022-03-22 Thread Fabian Ebner
Am 14.03.22 um 10:35 schrieb Aaron Lauterer: > @@ -1805,9 +1805,7 @@ Ext.define('PVE.Utils', { > }, > > nextFreeMP: function(type, config) { > - let mptype = type === "mp" ? "mps" : type; > - > - for (let i = 0; i < PVE.Utils.mp_counts[mptype]; i++) { > + for (let i = 0; i <

[pve-devel] [PATCH v4 manager 6/6] ui: util: refactor mps to mp

2022-03-14 Thread Aaron Lauterer
Using the actual config key instead of the pluralization, makes it easier in the situations where we need to match against it. Signed-off-by: Aaron Lauterer --- www/manager6/Utils.js | 8 +++- www/manager6/lxc/MPEdit.js | 2 +- www/manager6/lxc/MultiMPEdit.js | 4 ++-- www/man