Skip to content

Commit b78e371

Browse files
authored
Add seperate flag for download counts chart (#8384)
1 parent b3e7c01 commit b78e371

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/lib/frontend/handlers/experimental.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class ExperimentalFlags {
9696
bool get isDarkModeDefault => isEnabled('dark-as-default');
9797

9898
bool get showDownloadCounts => isEnabled('download-counts');
99+
bool get showDownloadCountsVersionChart =>
100+
isEnabled('download-counts-version-chart');
99101

100102
String encodedAsCookie() => _enabled.join(':');
101103

app/lib/frontend/templates/views/pkg/score_tab.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ d.Node scoreTabNode({
8080
),
8181
_reportNode(report),
8282
if (card.weeklyVersionDownloads != null &&
83-
requestContext.experimentalFlags.showDownloadCounts)
83+
requestContext.experimentalFlags.showDownloadCountsVersionChart)
8484
_downloadsChart(card.weeklyVersionDownloads!),
8585
if (toolEnvInfo != null) toolEnvInfo,
8686
]),

0 commit comments

Comments
 (0)