Skip to content

Commit

Permalink
MonitoredObjectController: history only if available
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas-Gelf committed Nov 16, 2014
1 parent 7f22afb commit 5bb3165
Showing 1 changed file with 11 additions and 9 deletions.
Expand Up @@ -212,15 +212,17 @@ protected function createTabs()
'urlParams' => $params
)
);
$tabs->add(
'history',
array(
'title' => 'History',
'icon' => 'rewind',
'url' => 'monitoring/show/history',
'urlParams' => $params
)
);
if ($this->backend->hasQuery('eventHistory')) {
$tabs->add(
'history',
array(
'title' => 'History',
'icon' => 'rewind',
'url' => 'monitoring/show/history',
'urlParams' => $params
)
);
}
$tabs
->extend(new OutputFormat())
->extend(new DashboardAction());
Expand Down

0 comments on commit 5bb3165

Please sign in to comment.