mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
monitoring: Rename remove-downtime to delete-downtime
This commit is contained in:
parent
ba7818db5f
commit
251030e1d8
@ -80,9 +80,9 @@
|
|||||||
$delCommentForm = clone $delCommentForm;
|
$delCommentForm = clone $delCommentForm;
|
||||||
$delCommentForm->populate(array('comment_id' => $comment->id, 'redirect' => $this->url));
|
$delCommentForm->populate(array('comment_id' => $comment->id, 'redirect' => $this->url));
|
||||||
if ($comment->objecttype === 'host') {
|
if ($comment->objecttype === 'host') {
|
||||||
$delCommentForm->setAction($this->url('monitoring/host/remove-comment', array('host' => $comment->host)));
|
$delCommentForm->setAction($this->url('monitoring/host/delete-comment', array('host' => $comment->host)));
|
||||||
} else {
|
} else {
|
||||||
$delCommentForm->setAction($this->url('monitoring/service/remove-comment', array('host' => $comment->host, 'service' => $comment->service)));
|
$delCommentForm->setAction($this->url('monitoring/service/delete-comment', array('host' => $comment->host, 'service' => $comment->service)));
|
||||||
}
|
}
|
||||||
echo $delCommentForm;
|
echo $delCommentForm;
|
||||||
?>
|
?>
|
||||||
|
@ -139,16 +139,16 @@ abstract class MonitoredObjectController extends Controller
|
|||||||
abstract public function scheduleDowntimeAction();
|
abstract public function scheduleDowntimeAction();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a comment
|
* Delete a comment
|
||||||
*/
|
*/
|
||||||
public function removeCommentAction()
|
public function deleteCommentAction()
|
||||||
{
|
{
|
||||||
$this->assertHttpMethod('POST');
|
$this->assertHttpMethod('POST');
|
||||||
$this->handleCommandForm(new DeleteCommentCommandForm());
|
$this->handleCommandForm(new DeleteCommentCommandForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove a downtime
|
* Delete a downtime
|
||||||
*/
|
*/
|
||||||
public function deleteDowntimeAction()
|
public function deleteDowntimeAction()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user