Skip to content

Commit

Permalink
Differentiate between 'pending' and 'will not analyze' on score tab's…
Browse files Browse the repository at this point in the history
… point highlights.
  • Loading branch information
isoos committed Sep 5, 2024
1 parent c561cbb commit 27d11e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/lib/frontend/templates/views/pkg/score_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ d.Node scoreTabNode({
classes: ['score-key-figures'],
children: [
_likeKeyFigureNode(likeCount),
_pubPointsKeyFigureNode(report),
_pubPointsKeyFigureNode(report, showPending),
_popularityKeyFigureNode(card.popularityScore),
],
),
Expand Down Expand Up @@ -266,11 +266,11 @@ d.Node _popularityKeyFigureNode(double? popularity) {
);
}

d.Node _pubPointsKeyFigureNode(Report? report) {
d.Node _pubPointsKeyFigureNode(Report? report, bool showPending) {
if (report == null) {
return _keyFigureNode(
value: '',
supplemental: 'pending',
value: showPending ? '' : '-',
supplemental: showPending ? 'pending' : '/ -',
label: 'pub points',
);
}
Expand Down

0 comments on commit 27d11e6

Please sign in to comment.