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
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 <
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