luci-mod-system: fstab: fix table cell rendering without unmount button
Signed-off-by: Anton Kikin <a.kikin@tano-systems.com>
This commit is contained in:
parent
ee6e07217c
commit
677765705d
1 changed files with 7 additions and 7 deletions
|
@ -117,14 +117,14 @@ function used.cfgvalue(self, section)
|
||||||
end
|
end
|
||||||
|
|
||||||
unmount = v:option(Button, "unmount", translate("Unmount"))
|
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)
|
unmount.render = function(self, section, scope)
|
||||||
if non_system_mounts[section].umount then
|
|
||||||
self.title = translate("Unmount")
|
self.title = translate("Unmount")
|
||||||
self.inputstyle = "remove"
|
self.inputstyle = "remove"
|
||||||
Button.render(self, section, scope)
|
Button.render(self, section, scope)
|
||||||
else
|
|
||||||
luci.http.write(" ")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
unmount.write = function(self, section)
|
unmount.write = function(self, section)
|
||||||
|
|
Loading…
Reference in a new issue