From 2ffdf1988ee972933bd59ef975a374ec22f481bd Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 8 Apr 2021 15:54:17 +0200 Subject: luci-app-dockerman: if remote_endpoint is selected a host must be set Signed-off-by: Florian Eckert --- .../luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'applications') diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua index 51609a6aaf..f826f2633f 100644 --- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua +++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua @@ -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) -- cgit v1.2.3