MonitoredObjectController: history only if available

This commit is contained in:
Thomas Gelf 2014-11-16 19:26:45 +01:00
parent 7f22afbc21
commit 5bb3165da3
1 changed files with 11 additions and 9 deletions

View File

@ -212,15 +212,17 @@ abstract class MonitoredObjectController extends Controller
'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());