luci-app-dockerman: if remote_endpoint is selected a port must be set
authorFlorian Eckert <fe@dev.tdt.de>
Thu, 8 Apr 2021 13:55:26 +0000 (15:55 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 19 Apr 2021 14:26:29 +0000 (16:26 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 483f1005b1f635fd6ccf92b6fc0c1df5755280de)

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