summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-04-08 15:54:17 +0200
committerFlorian Eckert <fe@dev.tdt.de>2021-04-08 16:25:42 +0200
commit2ffdf1988ee972933bd59ef975a374ec22f481bd (patch)
treedc4ab2169ab79ec44f635c29adb32cd769e7fe8a /applications
parentf406004c9c6c547918a099241d2f4e56f8180e8e (diff)
luci-app-dockerman: if remote_endpoint is selected a host must be set
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua4
1 files changed, 3 insertions, 1 deletions
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)