Dashlet: Use `showCompact` instead of `view=compact`

Allows dashlets to use their own value for parameter `view`
This commit is contained in:
Johannes Meyer 2020-05-19 16:37:52 +02:00
parent cc4d133632
commit c2f380cf9b
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ EOD;
}
$url = $this->getUrl();
$url->setParam('view', 'compact');
$url->setParam('showCompact', true);
$iframeUrl = clone $url;
$iframeUrl->setParam('isIframe');
@ -266,7 +266,7 @@ EOD;
$replaceTokens = array(
$url,
$iframeUrl,
$url->getUrlWithout(array('view', 'limit')),
$url->getUrlWithout(array('showCompact', 'limit')),
sprintf($view->translate('Show %s', 'dashboard.dashlet.tooltip'), $view->escape($this->getTitle())),
$view->escape($this->getTitle()),
$view->translate('Dashlet') . ': ',