mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-28 01:59:34 -05:00
IndexController: default to tile renderer
This commit is contained in:
parent
b109a46843
commit
3108d08ba3
1 changed files with 5 additions and 6 deletions
|
|
@ -11,20 +11,19 @@ class IndexController extends Controller
|
|||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
$this->tabs()->add('welcome', array(
|
||||
'label' => $this->translate('Business Processes'),
|
||||
'url' => $this->getRequest()->getUrl()
|
||||
))->activate('welcome');
|
||||
|
||||
$configs = $this->storage()->listProcesses();
|
||||
|
||||
if (! empty($configs)) {
|
||||
// Redirect to show the first process if there is any
|
||||
$this->redirectNow(
|
||||
'businessprocess/process/show',
|
||||
'businessprocess/process/show?mode=tile',
|
||||
array('config' => key($configs))
|
||||
);
|
||||
}
|
||||
$this->tabs()->add('welcome', array(
|
||||
'label' => $this->translate('Business Processes'),
|
||||
'url' => $this->getRequest()->getUrl()
|
||||
))->activate('welcome');
|
||||
|
||||
// Check back from time to time, maybe someone created a process
|
||||
$this->setAutorefreshInterval(30);
|
||||
|
|
|
|||
Loading…
Reference in a new issue