diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-20 08:24:35 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 99707a527ded1ede1c7094af07343f014f28fbde (patch) | |
tree | 569383ce14c2a5944aa19937b76823cb70567d90 /pkg/gui/context.go | |
parent | 9ee779378250cea342aa946e20258ae401c12a33 (diff) |
WIP
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r-- | pkg/gui/context.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 5916307f4..eab29e6e9 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -23,6 +23,7 @@ type Context interface { GetKind() int GetViewName() string GetKey() string + GetSelectedItemId() string } type BasicContext struct { @@ -34,6 +35,11 @@ type BasicContext struct { ViewName string } +// TODO: think about whether we need this on the Context interface or if it should just be on the ListContext struct +func (c BasicContext) GetSelectedItemId() string { + return "" +} + func (c BasicContext) HandleRender() error { if c.OnRender != nil { return c.OnRender() |