luci-app-dockerman: if remote_endpoint is selected a port must be set

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2021-04-08 15:55:26 +02:00
parent 2ffdf1988e
commit 483f1005b1

View 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