MonitoredObjectController: history only if available

This commit is contained in:
Thomas Gelf 2014-11-16 19:26:45 +01:00
parent 7f22afbc21
commit 5bb3165da3

View File

@ -212,6 +212,7 @@ abstract class MonitoredObjectController extends Controller
'urlParams' => $params
)
);
if ($this->backend->hasQuery('eventHistory')) {
$tabs->add(
'history',
array(
@ -221,6 +222,7 @@ abstract class MonitoredObjectController extends Controller
'urlParams' => $params
)
);
}
$tabs
->extend(new OutputFormat())
->extend(new DashboardAction());