mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-05-03 06:10:18 +02:00
Dashlet: Use showCompact
instead of view=compact
Allows dashlets to use their own value for parameter `view`
This commit is contained in:
parent
cc4d133632
commit
c2f380cf9b
@ -249,7 +249,7 @@ EOD;
|
|||||||
}
|
}
|
||||||
|
|
||||||
$url = $this->getUrl();
|
$url = $this->getUrl();
|
||||||
$url->setParam('view', 'compact');
|
$url->setParam('showCompact', true);
|
||||||
$iframeUrl = clone $url;
|
$iframeUrl = clone $url;
|
||||||
$iframeUrl->setParam('isIframe');
|
$iframeUrl->setParam('isIframe');
|
||||||
|
|
||||||
@ -266,7 +266,7 @@ EOD;
|
|||||||
$replaceTokens = array(
|
$replaceTokens = array(
|
||||||
$url,
|
$url,
|
||||||
$iframeUrl,
|
$iframeUrl,
|
||||||
$url->getUrlWithout(array('view', 'limit')),
|
$url->getUrlWithout(array('showCompact', 'limit')),
|
||||||
sprintf($view->translate('Show %s', 'dashboard.dashlet.tooltip'), $view->escape($this->getTitle())),
|
sprintf($view->translate('Show %s', 'dashboard.dashlet.tooltip'), $view->escape($this->getTitle())),
|
||||||
$view->escape($this->getTitle()),
|
$view->escape($this->getTitle()),
|
||||||
$view->translate('Dashlet') . ': ',
|
$view->translate('Dashlet') . ': ',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user