milo node rework

This commit is contained in:
kepler155c
2018-11-11 21:59:13 -05:00
parent fe1fc6ea93
commit 9ee8ce9f33
13 changed files with 317 additions and 83 deletions

View File

@@ -48,6 +48,11 @@ function storageView:validate()
return self.form:save()
end
function storageView:isValidType(node)
local m = device[node.name]
return m and m.pullItems and { name = 'Storage', value = 'storage' }
end
function storageView:isValidFor(node)
return node.mtype == 'storage'
end