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

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit 2ffdf1988e)
This commit is contained in:
Florian Eckert 2021-04-08 15:54:17 +02:00
parent 4b4850ead6
commit fa69377ad3

View file

@ -100,7 +100,9 @@ o.rmempty = false
o = s:option(Value, "remote_host",
translate("Remote Host"),
translate("Host or IP Address for the connection to a remote docker instance"))
o.datatype = "host"
o.datatype = "host"
o.rmempty = false
o.optional = false
o.placeholder = "10.1.1.2"
o:depends("remote_endpoint", 1)