Differential D7498 Diff 16921 src/applications/harbormaster/controller/HarbormasterPlanViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/harbormaster/controller/HarbormasterPlanViewController.php
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | private function buildActionList(HarbormasterBuildPlan $plan) { | ||||
$list->addAction( | $list->addAction( | ||||
id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
->setName(pht('Edit Plan')) | ->setName(pht('Edit Plan')) | ||||
->setHref($this->getApplicationURI("plan/edit/{$id}/")) | ->setHref($this->getApplicationURI("plan/edit/{$id}/")) | ||||
->setWorkflow(!$can_edit) | ->setWorkflow(!$can_edit) | ||||
->setDisabled(!$can_edit) | ->setDisabled(!$can_edit) | ||||
->setIcon('edit')); | ->setIcon('edit')); | ||||
$list->addAction( | |||||
id(new PhabricatorActionView()) | |||||
->setName(pht('Manually Execute Plan')) | |||||
->setHref($this->getApplicationURI("plan/execute/{$id}/")) | |||||
->setWorkflow(true) | |||||
->setDisabled(!$can_edit) | |||||
->setIcon('arrow_right')); | |||||
return $list; | return $list; | ||||
} | } | ||||
private function buildPropertyLists( | private function buildPropertyLists( | ||||
PHUIObjectBoxView $box, | PHUIObjectBoxView $box, | ||||
HarbormasterBuildPlan $plan, | HarbormasterBuildPlan $plan, | ||||
PhabricatorActionListView $actions) { | PhabricatorActionListView $actions) { | ||||
$request = $this->getRequest(); | $request = $this->getRequest(); | ||||
Show All 15 Lines |