luci-app-dockerman: if remote_endpoint is selected a port must be set
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 483f1005b1
)
This commit is contained in:
parent
fa69377ad3
commit
f6ec2b545b
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