diff options
-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) |