Explorar o código

Add min values to operation args

j433866 %!s(int64=6) %!d(string=hai) anos
pai
achega
3e428c044a
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/core/operations/GenerateQRCode.mjs

+ 4 - 2
src/core/operations/GenerateQRCode.mjs

@@ -38,12 +38,14 @@ class GenerateQRCode extends Operation {
             {
                 "name": "Module size (px)",
                 "type": "number",
-                "value": 5
+                "value": 5,
+                "min": 1
             },
             {
                 "name": "Margin (num modules)",
                 "type": "number",
-                "value": 2
+                "value": 2,
+                "min": 0
             },
             {
                 "name": "Error correction",