initial framework for additional screens

This commit is contained in:
2024-01-22 12:49:13 -06:00
parent 687b14334b
commit 8642b1f73a
3 changed files with 26 additions and 2 deletions

View File

@@ -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)