ui overhaul

This commit is contained in:
kepler155c@gmail.com
2019-02-05 23:04:22 -05:00
parent ab22ae8224
commit b07343a530
19 changed files with 35 additions and 52 deletions

View File

@@ -4,7 +4,7 @@ local UI = require('ui')
local colors = _G.colors
local device = _G.device
local storageView = UI.Window {
local storageView = UI.WizardPage {
title = 'Storage Options - General',
index = 2,
backgroundColor = colors.cyan,
@@ -34,11 +34,6 @@ local storageView = UI.Window {
},
}
function storageView:enable()
UI.Window.enable(self)
self:focusFirst()
end
function storageView:validate()
return self.form:save()
end
@@ -64,7 +59,7 @@ end
UI:getPage('nodeWizard').wizard:add({ storageGeneral = storageView })
--[[ Locking Page ]]--
local lockView = UI.Window {
local lockView = UI.WizardPage {
title = 'Storage Options - Locking',
index = 3,
backgroundColor = colors.cyan,
@@ -104,11 +99,6 @@ function lockView:showLockTypes()
self.grid:draw()
end
function lockView:enable()
UI.Window.enable(self)
self:focusFirst()
end
function lockView:validate()
return self.form:save()
end