diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-11-16 21:37:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 21:37:35 +0100 |
commit | e991e09d47118167828c9bccecfa72d5ddea7b07 (patch) | |
tree | df16ccb747a96305e2269934f49e8410853b66e4 | |
parent | a1fff6a9eebbfe3e9b3e5401645b1db4bdf37735 (diff) | |
parent | 677765705d721a93c8159b69b438b5b1757085e6 (diff) |
Merge pull request #2297 from tano-systems/fix-fstab-mount-table
luci-mod-system: fstab: fix table cell rendering without unmount button
-rw-r--r-- | modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab.lua b/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab.lua index 6f0921fdc..4a31146a0 100644 --- a/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab.lua +++ b/modules/luci-mod-system/luasrc/model/cbi/admin_system/fstab.lua @@ -117,14 +117,14 @@ function used.cfgvalue(self, section) end unmount = v:option(Button, "unmount", translate("Unmount")) +function unmount.cfgvalue(self, section) + return non_system_mounts[section].umount +end + unmount.render = function(self, section, scope) - if non_system_mounts[section].umount then - self.title = translate("Unmount") - self.inputstyle = "remove" - Button.render(self, section, scope) - else - luci.http.write(" ") - end + self.title = translate("Unmount") + self.inputstyle = "remove" + Button.render(self, section, scope) end unmount.write = function(self, section) |