Skip to content

Commit

Permalink
from review
Browse files Browse the repository at this point in the history
  • Loading branch information
hjpalpha committed Dec 16, 2024
1 parent 5af121c commit 094fdd6
Showing 1 changed file with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,24 +68,9 @@ end
function Parser.adjustMatchColumns(columns)
return Array.map(columns, function(column)
if column.id == 'status' then
column.show = function(match)
return match.finished and #Array.filter(match.opponents, function(opponent)
return Logic.readBool(opponent.advances)
end) > 1
end
column.row = {
value = function (opponent, idx)
local statusIcon = Logic.readBool(opponent.advances)
and BaseMatchSummary.STATUS_ICONS.advances
or BaseMatchSummary.STATUS_ICONS.eliminated
return mw.html.create('i')
:addClass(statusIcon)
end,
}
return
elseif column.id == 'totalPoints' then
column.show = function(match) return not Logic.readBool(match.noScore) end
elseif column.id == 'matchPoints' then
return
end
return column
end)
Expand Down

0 comments on commit 094fdd6

Please sign in to comment.