Differential D14985 Diff 36204 src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/daemon/controller/PhabricatorDaemonBulkJobViewController.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | final class PhabricatorDaemonBulkJobViewController | ||||
| private function renderActions(PhabricatorWorkerBulkJob $job) { | private function renderActions(PhabricatorWorkerBulkJob $job) { | ||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $actions = id(new PhabricatorActionListView()) | $actions = id(new PhabricatorActionListView()) | ||||
| ->setUser($viewer) | ->setUser($viewer) | ||||
| ->setObject($job); | ->setObject($job); | ||||
| if ($job->isConfirming()) { | |||||
| $continue_uri = $job->getMonitorURI(); | |||||
| } else { | |||||
| $continue_uri = $job->getDoneURI(); | |||||
| } | |||||
| $actions->addAction( | $actions->addAction( | ||||
| id(new PhabricatorActionView()) | id(new PhabricatorActionView()) | ||||
| ->setHref($job->getDoneURI()) | ->setHref($continue_uri) | ||||
| ->setIcon('fa-arrow-circle-o-right') | ->setIcon('fa-arrow-circle-o-right') | ||||
| ->setName(pht('Continue'))); | ->setName(pht('Continue'))); | ||||
| return $actions; | return $actions; | ||||
| } | } | ||||
| } | } | ||||