mirror of
https://github.com/jesseduffield/lazydocker.git
synced 2026-07-24 16:11:04 +00:00
show loader when filtering
This commit is contained in:
parent
95cee378cb
commit
c6d424e4a4
1 changed files with 13 additions and 13 deletions
|
|
@ -87,19 +87,6 @@ func (gui *Gui) getMidSectionWeights() (int, int) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*boxlayout.Box {
|
func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*boxlayout.Box {
|
||||||
if gui.State.Filter.active {
|
|
||||||
return []*boxlayout.Box{
|
|
||||||
{
|
|
||||||
Window: "filterPrefix",
|
|
||||||
Size: runewidth.StringWidth(gui.filterPrompt()),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Window: "filter",
|
|
||||||
Weight: 1,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
result := []*boxlayout.Box{}
|
result := []*boxlayout.Box{}
|
||||||
|
|
||||||
if len(appStatus) > 0 {
|
if len(appStatus) > 0 {
|
||||||
|
|
@ -111,6 +98,19 @@ func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if gui.State.Filter.active {
|
||||||
|
return append(result, []*boxlayout.Box{
|
||||||
|
{
|
||||||
|
Window: "filterPrefix",
|
||||||
|
Size: runewidth.StringWidth(gui.filterPrompt()),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Window: "filter",
|
||||||
|
Weight: 1,
|
||||||
|
},
|
||||||
|
}...)
|
||||||
|
}
|
||||||
|
|
||||||
result = append(result,
|
result = append(result,
|
||||||
[]*boxlayout.Box{
|
[]*boxlayout.Box{
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue