monitoring/show: no history tab for livestatus
Right now we show the tab based on the backend capability. No eventhistory, no history tab.
This commit is contained in:
parent
b6464c5d83
commit
822a64cc99
modules/monitoring/application/controllers
|
@ -227,15 +227,17 @@ class Monitoring_ShowController 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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue