From: Flesh <62557990+PolterTzi@users.noreply.github.com> Date: Fri, 1 Mar 2024 02:23:12 +0000 (+0100) Subject: Cargo request console search now includes crate descriptions (#25708) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=c83ad11be170f860a0fbd5dde257fd0537e89712;p=space-station-14.git Cargo request console search now includes crate descriptions (#25708) added condition checking description to cargo search --- diff --git a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs index 5402a24667..baf0d31f1f 100644 --- a/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs +++ b/Content.Client/Cargo/UI/CargoConsoleMenu.xaml.cs @@ -92,6 +92,7 @@ namespace Content.Client.Cargo.UI // else if category and not search if (search.Length == 0 && _category == null || search.Length != 0 && prototype.Name.ToLowerInvariant().Contains(search) || + search.Length != 0 && prototype.Description.ToLowerInvariant().Contains(search) || search.Length == 0 && _category != null && prototype.Category.Equals(_category)) { var button = new CargoProductRow