initial framework for additional screens
This commit is contained in:
@@ -20,7 +20,10 @@ type App struct {
|
||||
|
||||
help *help.Help
|
||||
assets *assets.Assets
|
||||
menu *tview.TextView
|
||||
// shelves *shelves.Shelves
|
||||
// categories *categories.Categories
|
||||
// buildings *buildings.Buildings
|
||||
menu *tview.TextView
|
||||
|
||||
currentPage string
|
||||
needInitUI bool
|
||||
@@ -45,6 +48,9 @@ func NewApp(name, version, host string, logger *zap.Logger) *App {
|
||||
menuItems := [][]string{
|
||||
{utils.HelpScreenKey.Label(), app.help.GetTitle()},
|
||||
{utils.AssetsScreenKey.Label(), app.assets.GetTitle()},
|
||||
//{utils.ShelvesScreenKey.Label(), app.shelves.GetTitle()},
|
||||
//{utils.CategoriesScreenKey.Label(), app.categories.GetTitle()},
|
||||
//{utils.BuildingsScreenKey.Label(), app.buildings.GetTitle()},
|
||||
}
|
||||
|
||||
app.menu = makeMenu(menuItems)
|
||||
|
||||
Reference in New Issue
Block a user