mirror of
				https://github.com/Icinga/icingaweb2.git
				synced 2025-11-03 20:54:27 +01: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->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') . ': ',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user