mirror of
https://github.com/mrusme/neonmodem.git
synced 2025-02-02 15:07:59 -05:00
Removed capabilities check
This commit is contained in:
parent
54acfe873c
commit
d07a01df17
11
ui/ui.go
11
ui/ui.go
@ -52,16 +52,7 @@ func NewModel(c *ctx.Ctx) Model {
|
||||
}
|
||||
|
||||
m.header = header.NewModel(m.ctx)
|
||||
for _, capability := range (*m.ctx.Systems[0]).GetCapabilities() { // TODO
|
||||
switch capability.ID {
|
||||
case "posts":
|
||||
m.views = append(m.views, posts.NewModel(m.ctx))
|
||||
// case "groups":
|
||||
// m.views = append(m.views, groups.NewModel(m.ctx))
|
||||
// case "search":
|
||||
// m.views = append(m.views, search.NewModel(m.ctx))
|
||||
}
|
||||
}
|
||||
m.views = append(m.views, posts.NewModel(m.ctx))
|
||||
|
||||
return m
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user