MonitoredObjectController: history only if available
This commit is contained in:
parent
7f22afbc21
commit
5bb3165da3
|
@ -212,15 +212,17 @@ abstract class MonitoredObjectController extends Controller
|
||||||
'urlParams' => $params
|
'urlParams' => $params
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
$tabs->add(
|
if ($this->backend->hasQuery('eventHistory')) {
|
||||||
'history',
|
$tabs->add(
|
||||||
array(
|
'history',
|
||||||
'title' => 'History',
|
array(
|
||||||
'icon' => 'rewind',
|
'title' => 'History',
|
||||||
'url' => 'monitoring/show/history',
|
'icon' => 'rewind',
|
||||||
'urlParams' => $params
|
'url' => 'monitoring/show/history',
|
||||||
)
|
'urlParams' => $params
|
||||||
);
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
$tabs
|
$tabs
|
||||||
->extend(new OutputFormat())
|
->extend(new OutputFormat())
|
||||||
->extend(new DashboardAction());
|
->extend(new DashboardAction());
|
||||||
|
|
Loading…
Reference in New Issue