mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
parent
7a95f430bf
commit
d45af31503
@ -84,7 +84,13 @@ class DeploymentLinkForm extends DirectorForm
|
|||||||
|
|
||||||
$this->setAttrib('class', 'inline');
|
$this->setAttrib('class', 'inline');
|
||||||
$this->addHtml(Icon::create('wrench'));
|
$this->addHtml(Icon::create('wrench'));
|
||||||
$target = $this->shouldWarnAboutBug7530() ? '_self' : '_next';
|
try {
|
||||||
|
// As this is shown for single objects, ignore errors caused by an
|
||||||
|
// unreachable core
|
||||||
|
$target = $this->shouldWarnAboutBug7530() ? '_self' : '_next';
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
$target = '_next';
|
||||||
|
}
|
||||||
$this->addSubmitButton($this->translate('Deploy'), [
|
$this->addSubmitButton($this->translate('Deploy'), [
|
||||||
'class' => 'link-button icon-wrench',
|
'class' => 'link-button icon-wrench',
|
||||||
'title' => $msg,
|
'title' => $msg,
|
||||||
@ -108,8 +114,12 @@ class DeploymentLinkForm extends DirectorForm
|
|||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
if ($this->skipBecauseOfBug7530()) {
|
try {
|
||||||
return;
|
if ($this->skipBecauseOfBug7530()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
// continue
|
||||||
}
|
}
|
||||||
$this->deploy();
|
$this->deploy();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user