Skip to content

Commit

Permalink
fix: eslint errors from last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
tsa96 committed Nov 20, 2024
1 parent 540ca3b commit 863dd5f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions scripts/hud/comparisons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class HudComparisonsHandler {
if (
timerStatus.trackId.type === this.comparison.trackId.type &&
timerStatus.trackId.number === this.comparison.trackId.number
// eslint-disable-next-line no-empty
) {
} else {
// Track differs -- could maybe do a best-effort comparison if one is a stage and one is the main track,
Expand Down
33 changes: 17 additions & 16 deletions scripts/pages/leaderboards/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,24 @@ class LeaderboardEntryHandler {
const index = $.GetContextPanel().GetAttributeInt('item_index', 0);
const isValid = timeData.type !== LeaderboardEntryType.INVALID;
if (isValid) {
items.push({
label: $.Localize('#Action_WatchReplay'),
icon: 'file://{images}/movie-open-outline.svg',
style: 'icon-color-mid-blue',
jsCallback: () => {
$.DispatchEvent('LeaderboardEntry_PlayReplay', index);
}
});

items.push({
label: $.Localize('#Action_SetComparisonRun'),
icon: 'file://{images}/chart-timeline.svg',
style: 'icon-color-light-blue',
jsCallback: () => {
$.DispatchEvent('LeaderboardEntry_SetComparisonRun', index);
items.push(
{
label: $.Localize('#Action_WatchReplay'),
icon: 'file://{images}/movie-open-outline.svg',
style: 'icon-color-mid-blue',
jsCallback: () => {
$.DispatchEvent('LeaderboardEntry_PlayReplay', index);
}
},
{
label: $.Localize('#Action_SetComparisonRun'),
icon: 'file://{images}/chart-timeline.svg',
style: 'icon-color-light-blue',
jsCallback: () => {
$.DispatchEvent('LeaderboardEntry_SetComparisonRun', index);
}
}
});
);
}

if (timeData.type === LeaderboardEntryType.ONLINE || timeData.type === LeaderboardEntryType.ONLINE_CACHED) {
Expand Down

0 comments on commit 863dd5f

Please sign in to comment.