mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
67b1309834
commit
23841b635e
@ -83,11 +83,13 @@ class HostsController extends Controller
|
|||||||
public function showAction()
|
public function showAction()
|
||||||
{
|
{
|
||||||
$this->setAutorefreshInterval(15);
|
$this->setAutorefreshInterval(15);
|
||||||
$checkNowForm = new CheckNowCommandForm();
|
if ($this->Auth()->hasPermission('monitoring/command/schedule-check')) {
|
||||||
$checkNowForm
|
$checkNowForm = new CheckNowCommandForm();
|
||||||
->setObjects($this->hostList)
|
$checkNowForm
|
||||||
->handleRequest();
|
->setObjects($this->hostList)
|
||||||
$this->view->checkNowForm = $checkNowForm;
|
->handleRequest();
|
||||||
|
$this->view->checkNowForm = $checkNowForm;
|
||||||
|
}
|
||||||
|
|
||||||
$acknowledgedObjects = $this->hostList->getAcknowledgedObjects();
|
$acknowledgedObjects = $this->hostList->getAcknowledgedObjects();
|
||||||
if (! empty($acknowledgedObjects)) {
|
if (! empty($acknowledgedObjects)) {
|
||||||
|
@ -174,10 +174,12 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<?php if (isset($checkNowForm)): // Form is unset if the current user lacks the respective permission ?>
|
||||||
<th> <?= $this->translate('Schedule Check') ?> </th>
|
<tr>
|
||||||
<td> <?= $checkNowForm ?> </td>
|
<th> <?= $this->translate('Schedule Check') ?> </th>
|
||||||
</tr>
|
<td> <?= $checkNowForm ?> </td>
|
||||||
|
</tr>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<th></th>
|
<th></th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user