diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-04-11 21:45:05 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-04-11 21:45:05 +0200 |
| commit | 5a4c882d409e4051001cdd64cbcef9a98fc2c6cf (patch) | |
| tree | 426ff146466b72573dafe35850c114498cfbd4ee /cli/component.hpp | |
| parent | 68f64f20dd2f827f6076ec02d3eaa8961fd12022 (diff) | |
| download | kazbek-5a4c882d409e4051001cdd64cbcef9a98fc2c6cf.tar.gz | |
Katja: Allow the search by name in the TUI
Diffstat (limited to 'cli/component.hpp')
| -rw-r--r-- | cli/component.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cli/component.hpp b/cli/component.hpp index 226e7f7..c419020 100644 --- a/cli/component.hpp +++ b/cli/component.hpp @@ -59,9 +59,16 @@ namespace katja class SearchPage final : public PageBase { std::string needle; - ftxui::Component search_input = ftxui::Input(&this->needle, "Search"); + ftxui::Component search_input; + ftxui::Component type_input; + std::shared_ptr<struct repository> repository; + std::string architecture; + std::vector<package_identifier> search_results; + int search_type{ 0 }; public: + SearchPage(std::shared_ptr<struct repository> repository, const std::string& architecture); + void Load() override; ftxui::Element OnRender() override; bool OnEvent(ftxui::Event event) override; |
