Skip to content

Commit

Permalink
Update Class47, add missing column header (#207)
Browse files Browse the repository at this point in the history
* hasRotations

* Update Class47

* npm update
  • Loading branch information
scottanderson authored Sep 18, 2024
1 parent baf7929 commit 69c8032
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 78 deletions.
173 changes: 97 additions & 76 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ts/Studio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1535,8 +1535,10 @@ export class Studio {
table.appendChild(thead);
let tr = document.createElement('tr');
thead.appendChild(tr);
const hasRotations = this.railroad.players.some((player) => typeof player.rotation !== 'undefined');
const hasPermissions = this.railroad.players.some((player) => typeof player.permissions !== 'undefined');
const columnHeaders = ['Steam ID', 'Name', 'Money', 'XP', 'Location'];
if (hasRotations) columnHeaders.push('Rotation');
if (hasPermissions) columnHeaders.push('Permissions');
for (const columnHeader of columnHeaders) {
const th = document.createElement('th');
Expand Down
Loading

0 comments on commit 69c8032

Please sign in to comment.