diff options
author | Stefan Giehl <stefan@matomo.org> | 2020-11-10 19:14:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 19:14:56 +0300 |
commit | be724571d2f477b4f553411d41df3fb22408c0a6 (patch) | |
tree | 385046baeb033a1be7abe9f57139a99c819e9664 /plugins/Actions/Reports/Base.php | |
parent | a4bdd6c9072d9c86e16fa566e129b7313751bdfe (diff) |
Move performance reports to a new page / category (#16673)
* Move performance reports to new category
* fix tooltips
* updates UI test
* updates expected test files
* updates expected screenshots
* Move Performance category after transitions
* Make page reports wider
* adds nonce to language selector in updater / installation
* updates expected test files
* Update getLanguagesSelector.twig
* change report title to page urls
* Hide performance viz on normal page reports (not in widgets)
* update tests
* updates submodules
* fix ui tests
Co-authored-by: Thomas Steur <tsteur@users.noreply.github.com>
Diffstat (limited to 'plugins/Actions/Reports/Base.php')
-rw-r--r-- | plugins/Actions/Reports/Base.php | 14 |
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) |