UI Improvement: Modal confirmation dialog
This commit is contained in:
parent
12cca9c93c
commit
27e3b8b469
4 changed files with 206 additions and 4 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue