fix(tui): generic empty-state for searchable pickers (PR #1201, thanks @vignesh07)
Co-authored-by: Vignesh Natarajan <vigneshnatarajan92@gmail.com>
This commit is contained in:
@@ -158,7 +158,7 @@ describe("SearchableSelectList", () => {
|
||||
list.handleInput("z");
|
||||
|
||||
const output = list.render(80);
|
||||
expect(output.some((line) => line.includes("No matching"))).toBe(true);
|
||||
expect(output.some((line) => line.includes("No matches"))).toBe(true);
|
||||
});
|
||||
|
||||
it("navigates with arrow keys", () => {
|
||||
|
||||
@@ -190,7 +190,7 @@ export class SearchableSelectList implements Component {
|
||||
|
||||
// If no items match filter, show message
|
||||
if (this.filteredItems.length === 0) {
|
||||
lines.push(this.theme.noMatch(" No matching models"));
|
||||
lines.push(this.theme.noMatch(" No matches"));
|
||||
return lines;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user