mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-22 21:42:49 +01:00
disable arrow buttons if there's no results
This commit is contained in:
parent
b0ed9d932a
commit
133e351fb7
@ -115,6 +115,7 @@ const SearchComponent = ({
|
||||
elemtype: "iconbutton",
|
||||
icon: "chevron-up",
|
||||
title: "Previous Result (Shift+Enter)",
|
||||
disabled: numResults === 0,
|
||||
click: onPrevWrapper,
|
||||
};
|
||||
|
||||
@ -122,6 +123,7 @@ const SearchComponent = ({
|
||||
elemtype: "iconbutton",
|
||||
icon: "chevron-down",
|
||||
title: "Next Result (Enter)",
|
||||
disabled: numResults === 0,
|
||||
click: onNextWrapper,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user