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:
parent
2ffdf1988e
commit
483f1005b1
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ o:depends("remote_endpoint", 1)
|
||||||
o = s:option(Value, "remote_port",
|
o = s:option(Value, "remote_port",
|
||||||
translate("Remote Port"))
|
translate("Remote Port"))
|
||||||
o.placeholder = "2375"
|
o.placeholder = "2375"
|
||||||
o.default = "2375"
|
o.datatype = "port"
|
||||||
|
o.rmempty = false
|
||||||
|
o.optional = false
|
||||||
o:depends("remote_endpoint", 1)
|
o:depends("remote_endpoint", 1)
|
||||||
|
|
||||||
if nixio.fs.access("/usr/bin/dockerd") then
|
if nixio.fs.access("/usr/bin/dockerd") then
|
||||||
|
|
Loading…
Reference in a new issue