From fa69377ad3f3f83a5c3e54956f0a17c9fc2f5aec Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Thu, 8 Apr 2021 15:54:17 +0200 Subject: [PATCH] luci-app-dockerman: if remote_endpoint is selected a host must be set Signed-off-by: Florian Eckert (cherry picked from commit 2ffdf1988ee972933bd59ef975a374ec22f481bd) --- .../luasrc/model/cbi/dockerman/overview.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.30.2