Merge pull request #6651 from jjm2473/upstream/dockerman-hide-submit-on-overview
authorPaul Donald <newtwen@gmail.com>
Mon, 4 Dec 2023 14:06:17 +0000 (15:06 +0100)
committerPaul Donald <newtwen@gmail.com>
Mon, 4 Dec 2023 22:45:33 +0000 (23:45 +0100)
luci-app-dockerman: hide config buttons in overview page
(cherry picked from commit 568b44edb3bf545e424e7c1a3f162e753b190113)

applications/luci-app-dockerman/luasrc/controller/dockerman.lua
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua

index f00f863ca51a053128f95a8ef0c806d231069d97..ac0668b073467177ea73dcbe8270ce29e498460f 100644 (file)
@@ -33,7 +33,7 @@ function index()
                return
        end
 
-       entry({"admin", "docker", "overview"},cbi("dockerman/overview"),_("Overview"), 2).leaf=true
+       entry({"admin", "docker", "overview"}, form("dockerman/overview"),_("Overview"), 2).leaf=true
        entry({"admin", "docker", "containers"}, form("dockerman/containers"), _("Containers"), 3).leaf=true
        entry({"admin", "docker", "images"}, form("dockerman/images"), _("Images"), 4).leaf=true
        entry({"admin", "docker", "networks"}, form("dockerman/networks"), _("Networks"), 5).leaf=true
index 022664738d347b4593d0f8967eed4d7c0c040449..0506670cdbae09551d6000c8a4257bc0778a6550 100644 (file)
@@ -18,9 +18,11 @@ function byte_format(byte)
        end
 end
 
-m = Map("dockerd",
+m = SimpleForm("dockerd",
        translate("Docker - Overview"),
        translate("An overview with the relevant data is displayed here with which the LuCI docker client is connected."))
+m.submit=false
+m.reset=false
 
 local docker_info_table = {}
 docker_info_table['3ServerVersion'] = {_key=translate("Docker Version"),_value='-'}