monitoring: Rename remove-downtime to delete-downtime
This commit is contained in:
parent
ba7818db5f
commit
251030e1d8
|
@ -80,9 +80,9 @@
|
|||
$delCommentForm = clone $delCommentForm;
|
||||
$delCommentForm->populate(array('comment_id' => $comment->id, 'redirect' => $this->url));
|
||||
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 {
|
||||
$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;
|
||||
?>
|
||||
|
|
|
@ -139,16 +139,16 @@ abstract class MonitoredObjectController extends Controller
|
|||
abstract public function scheduleDowntimeAction();
|
||||
|
||||
/**
|
||||
* Remove a comment
|
||||
* Delete a comment
|
||||
*/
|
||||
public function removeCommentAction()
|
||||
public function deleteCommentAction()
|
||||
{
|
||||
$this->assertHttpMethod('POST');
|
||||
$this->handleCommandForm(new DeleteCommentCommandForm());
|
||||
}
|
||||
|
||||
/**
|
||||
* Remove a downtime
|
||||
* Delete a downtime
|
||||
*/
|
||||
public function deleteDowntimeAction()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue