Skip to content

Commit

Permalink
Improved CrewMonitor interface (#27140)
Browse files Browse the repository at this point in the history
* Imroved CrewMonitor interface

* Fixed a typo

* Revert "Fixed a typo"

This reverts commit 7102ea2.

* Finaly? Thanks @DJ34 @aylongo
  • Loading branch information
Drsmail authored Oct 25, 2024
1 parent dc7d24c commit 253b7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tgui/packages/tgui/interfaces/CrewMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,11 @@ export const CrewMonitor = (props, context) => {

const CrewMonitorDataView = (_properties, context) => {
const { act, data } = useBackend(context);
const crew = sortBy((cm) => cm.name)(data.crewmembers || []);
const { possible_levels, viewing_current_z_level, is_advanced, highlightedNames } = data;
const crew = sortBy(
(cm) => !highlightedNames.includes(cm.name),
(cm) => cm.name
)(data.crewmembers || []);
const [search, setSearch] = useLocalState(context, 'search', '');
const searcher = createSearch(search, (cm) => {
return cm.name + '|' + cm.assignment + '|' + cm.area;
Expand Down
2 changes: 1 addition & 1 deletion tgui/public/tgui.bundle.js

Large diffs are not rendered by default.

0 comments on commit 253b7f1

Please sign in to comment.