Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crew Monitor filter #31659

Merged
merged 2 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
</PanelContainer>
</controls:StripeBack>

<LineEdit Name="SearchLineEdit" HorizontalExpand="True"
PlaceHolder="{Loc crew-monitor-filter-line-placeholder}" />

<ScrollContainer Name="SensorScroller"
VerticalExpand="True"
SetWidth="520"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ private void PopulateDepartmentList(IEnumerable<SuitSensorStatus> departmentSens
// Populate departments
foreach (var sensor in departmentSensors)
{
if (!string.IsNullOrEmpty(SearchLineEdit.Text)
&& !sensor.Name.ToUpper().Contains(SearchLineEdit.Text.ToUpper())
&& !sensor.Job.ToUpper().Contains(SearchLineEdit.Text.ToUpper()))
Errant-4 marked this conversation as resolved.
Show resolved Hide resolved
continue;

var coordinates = _entManager.GetCoordinates(sensor.Coordinates);

// Add a button that will hold a username and other details
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

crew-monitoring-user-interface-title = Crew Monitoring Console

crew-monitor-filter-line-placeholder = Filter

crew-monitoring-user-interface-name = Name
crew-monitoring-user-interface-job = Job
crew-monitoring-user-interface-status = Status
Expand Down
Loading