@@ -222,14 +234,18 @@ export default function JSONGenerator() {
updateScript("updateable", checked)}
+ onCheckedChange={(checked) =>
+ updateScript("updateable", checked)
+ }
/>
updateScript("privileged", checked)}
+ onCheckedChange={(checked) =>
+ updateScript("privileged", checked)
+ }
/>
@@ -238,7 +254,12 @@ export default function JSONGenerator() {
placeholder="Interface Port"
type="number"
value={script.interface_port || ""}
- onChange={(e) => updateScript("interface_port", e.target.value ? Number(e.target.value) : null)}
+ onChange={(e) =>
+ updateScript(
+ "interface_port",
+ e.target.value ? Number(e.target.value) : null,
+ )
+ }
/>
updateScript("documentation", e.target.value || null)}
+ onChange={(e) =>
+ updateScript("documentation", e.target.value || null)
+ }
/>
updateScript("default_credentials", {
- ...script.default_credentials,
- username: e.target.value || null,
- })}
+ onChange={(e) =>
+ updateScript("default_credentials", {
+ ...script.default_credentials,
+ username: e.target.value || null,
+ })
+ }
/>
updateScript("default_credentials", {
- ...script.default_credentials,
- password: e.target.value || null,
- })}
+ onChange={(e) =>
+ updateScript("default_credentials", {
+ ...script.default_credentials,
+ password: e.target.value || null,
+ })
+ }
/>