luci-app-dockerman: do not preset value selection
authorFlorian Eckert <[email protected]>
Thu, 8 Apr 2021 12:59:02 +0000 (14:59 +0200)
committerFlorian Eckert <[email protected]>
Thu, 8 Apr 2021 14:25:13 +0000 (16:25 +0200)
Signed-off-by: Florian Eckert <[email protected]>
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua

index 5fe6b2b3ecc87ef9e5bb6f6ca8345434a404dfa7..2e21b806c57fbc4bc2107fdaf6d290835dea9ac4 100644 (file)
@@ -139,9 +139,8 @@ if nixio.fs.access("/usr/bin/dockerd") then
 
        o = s:option(DynamicList, "hosts",
                translate("Client connection"),
-               translate('Specifies where the Docker daemon will listen for client connections'))
-       o:value("unix:///var/run/docker.sock", "unix:///var/run/docker.sock")
-       o:value("tcp://0.0.0.0:2375", "tcp://0.0.0.0:2375")
+               translate('Specifies where the Docker daemon will listen for client connections (default: unix:///var/run/docker.sock)'))
+       o.placeholder = translate("Example: tcp://0.0.0.0:2375")
        o.rmempty = true
        o:depends("remote_endpoint", 0)
 end