diff options
author | dwillist <dthornton@vmware.com> | 2020-12-19 02:31:44 -0500 |
---|---|---|
committer | dwillist <dthornton@vmware.com> | 2020-12-19 02:31:44 -0500 |
commit | d93c6738109d6f9f02e13ac0aad44d440b0139b7 (patch) | |
tree | 8203c2473294c2bb5bc5444103740b605b629649 /runtime/ui/viewmodels/filter_view_model.go | |
parent | feea882d8e985bcf5f1b31cedc924555d9cf6a7c (diff) |
add visible grid component that allows us to hide views and re-allocate the available space
Signed-off-by: dwillist <dthornton@vmware.com>
Diffstat (limited to 'runtime/ui/viewmodels/filter_view_model.go')
-rw-r--r-- | runtime/ui/viewmodels/filter_view_model.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/runtime/ui/viewmodels/filter_view_model.go b/runtime/ui/viewmodels/filter_view_model.go index 543f4b2..5a5a210 100644 --- a/runtime/ui/viewmodels/filter_view_model.go +++ b/runtime/ui/viewmodels/filter_view_model.go @@ -1,6 +1,10 @@ package viewmodels -import "regexp" +import ( + "regexp" + + "go.uber.org/zap" +) type FilterViewModel struct { filterRegex *regexp.Regexp @@ -13,6 +17,11 @@ func NewFilterViewModel(r *regexp.Regexp) *FilterViewModel { } func (fm *FilterViewModel) SetFilter(r *regexp.Regexp) { + if r != nil { + zap.S().Info("setting filter ", r.String()) + } else { + zap.S().Info("setting filter nil") + } fm.filterRegex = r } |