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)