luci-app-dockerman: if remote_endpoint is selected a port must be set
authorFlorian Eckert <[email protected]>
Thu, 8 Apr 2021 13:55:26 +0000 (15:55 +0200)
committerFlorian Eckert <[email protected]>
Thu, 8 Apr 2021 14:25:52 +0000 (16:25 +0200)
Signed-off-by: Florian Eckert <[email protected]>
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua

index f826f2633f8afeb089a5cc13caae33022f19ce77..e28343f1a75fc862990d6444a9e0e26a8e8695dc 100644 (file)
@@ -109,7 +109,9 @@ o:depends("remote_endpoint", 1)
 o = s:option(Value, "remote_port",
        translate("Remote Port"))
 o.placeholder = "2375"
-o.default = "2375"
+o.datatype = "port"
+o.rmempty = false
+o.optional = false
 o:depends("remote_endpoint", 1)
 
 if nixio.fs.access("/usr/bin/dockerd") then