Made the prototype functional

This commit is contained in:
signalhunter 2020-08-22 03:11:29 -04:00
parent 7d7fb323da
commit 17391c1e00
1 changed files with 9 additions and 0 deletions

View File

@ -40,5 +40,14 @@ return UI.Tab {
enable = function(self)
self:reload()
UI.Tab.enable(self)
end,
eventHandler = function(self, event)
if event.type == 'grid_select' then
local hosts = Util.readTable('usr/.known_hosts')
hosts[event.selected.id] = nil
Util.writeTable('usr/.known_hosts', hosts)
self:reload()
return true
end
end
}