parent
587b5651eb
commit
e782fcb859
|
@ -8,8 +8,9 @@ if ($this->hasPermission('monitoring/command/comment/add')) {
|
||||||
'monitoring/host/add-comment',
|
'monitoring/host/add-comment',
|
||||||
array('host' => $object->getName()),
|
array('host' => $object->getName()),
|
||||||
array(
|
array(
|
||||||
'icon' => 'comment',
|
'class' => 'action-link',
|
||||||
'data-base-target' => '_self',
|
'data-base-target' => '_self',
|
||||||
|
'icon' => 'comment',
|
||||||
'title' => $this->translate('Add a new comment to this host')
|
'title' => $this->translate('Add a new comment to this host')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -19,8 +20,9 @@ if ($this->hasPermission('monitoring/command/comment/add')) {
|
||||||
'monitoring/service/add-comment',
|
'monitoring/service/add-comment',
|
||||||
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
|
array('host' => $object->getHost()->getName(), 'service' => $object->getName()),
|
||||||
array(
|
array(
|
||||||
'icon' => 'comment',
|
'class' => 'action-link',
|
||||||
'data-base-target' => '_self',
|
'data-base-target' => '_self',
|
||||||
|
'icon' => 'comment',
|
||||||
'title' => $this->translate('Add a new comment to this service')
|
'title' => $this->translate('Add a new comment to this service')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
@ -48,8 +50,8 @@ if (empty($object->comments) && ! $addLink) {
|
||||||
$deleteButton = clone($delCommentForm);
|
$deleteButton = clone($delCommentForm);
|
||||||
$deleteButton->populate(
|
$deleteButton->populate(
|
||||||
array(
|
array(
|
||||||
'comment_id' => $comment->id,
|
'comment_id' => $comment->id,
|
||||||
'comment_is_service' => isset($comment->service_description)
|
'comment_is_service' => isset($comment->service_description)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue