mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 10:19:40 +00:00
UX: Hide 'other' and 'crawler' site traffic on report page (#28817)
Followup 14b436923c5b582cea454b69441a28e16f2f191e On the standalone Site Traffic report page, we also need to hide the 'other' and 'crawler' pageviews by default like we do on the admin dashboard.
This commit is contained in:
parent
428fb793b7
commit
56877e9acf
@ -391,7 +391,7 @@ export default class AdminReport extends Component {
|
||||
Report.groupingForDatapoints(report.chartData.length),
|
||||
})
|
||||
);
|
||||
} else if (mode === "stacked-chart") {
|
||||
} else if (mode === "stacked-chart" || mode === "stacked_chart") {
|
||||
return this.get("reportOptions.stackedChart") || {};
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,12 @@ export default class AdminReportsShowController extends Controller {
|
||||
options.table.limit = 10;
|
||||
}
|
||||
|
||||
if (type === "site_traffic") {
|
||||
options.stackedChart = {
|
||||
hiddenLabels: ["page_view_other", "page_view_crawler"],
|
||||
};
|
||||
}
|
||||
|
||||
options.chartGrouping = this.chart_grouping;
|
||||
|
||||
return options;
|
||||
|
Loading…
x
Reference in New Issue
Block a user