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