UI Improvement: Modal confirmation dialog

This commit is contained in:
Pavel Pavlov 2013-11-27 18:09:14 +04:00
commit 27e3b8b469
4 changed files with 206 additions and 4 deletions

View file

@ -129,6 +129,12 @@ class BuildController extends \PHPCI\Controller
}
$build = $this->buildStore->getById($buildId);
if (!$build) {
$this->response->setResponseCode(404);
return '404 - Not Found';
}
$this->buildStore->delete($build);
header('Location: '.PHPCI_URL.'project/view/' . $build->getProjectId());