UX: Hide 'other' and 'crawler' site traffic on report page (#28817)
Followup 14b436923c
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…
Reference in New Issue