Differential D11870 Diff 32666 src/applications/harbormaster/editor/HarbormasterBuildTransactionEditor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/editor/HarbormasterBuildTransactionEditor.php
Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | switch ($command) { | ||||
$issuable = $build->canRestartBuild(); | $issuable = $build->canRestartBuild(); | ||||
break; | break; | ||||
case HarbormasterBuildCommand::COMMAND_STOP: | case HarbormasterBuildCommand::COMMAND_STOP: | ||||
$issuable = $build->canStopBuild(); | $issuable = $build->canStopBuild(); | ||||
break; | break; | ||||
case HarbormasterBuildCommand::COMMAND_RESUME: | case HarbormasterBuildCommand::COMMAND_RESUME: | ||||
$issuable = $build->canResumeBuild(); | $issuable = $build->canResumeBuild(); | ||||
break; | break; | ||||
case HarbormasterBuildCommand::COMMAND_ABORT: | |||||
$issuable = $build->canAbortBuild(); | |||||
break; | |||||
default: | default: | ||||
throw new Exception(pht('Unknown command %s', $command)); | throw new Exception(pht('Unknown command %s', $command)); | ||||
} | } | ||||
if (!$issuable) { | if (!$issuable) { | ||||
return; | return; | ||||
} | } | ||||
Show All 27 Lines |