Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Actions/Reports/Base.php')
-rw-r--r--plugins/Actions/Reports/Base.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Actions/Reports/Base.php b/plugins/Actions/Reports/Base.php
index c84f2fd5c6..5a43d58883 100644
--- a/plugins/Actions/Reports/Base.php
+++ b/plugins/Actions/Reports/Base.php
@@ -34,6 +34,15 @@ abstract class Base extends \Piwik\Plugin\Report
$view->requestConfig->filter_limit = Actions::ACTIONS_REPORT_ROWS_DISPLAY;
$view->config->show_all_views_icons = false;
+ if ($view->requestConfig->getRequestParam('performance') === '1') {
+ $view->requestConfig->filter_limit = 25;
+ // hide visualization selector
+ $view->config->footer_icons = [[
+ 'class' => 'tableAllColumnsSwitch',
+ 'buttons' => [],
+ ]];
+ }
+
if ($view->isViewDataTableId(HtmlTable::ID)) {
$view->config->show_embedded_subtable = true;
}
@@ -87,6 +96,11 @@ abstract class Base extends \Piwik\Plugin\Report
);
$this->addExcludeLowPopDisplayProperties($view);
+
+ // hide the performance columns viz in page reports when not displayed as widget
+ if ($view->requestConfig->getRequestParam('widget') != '1') {
+ $view->config->show_table_performance = false;
+ }
}
protected function addExcludeLowPopDisplayProperties(ViewDataTable $view)