Differential D19810 Diff 47322 src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/xaction/DifferentialRevisionRequestReviewTransaction.php
| Show All 13 Lines | protected function getRevisionActionDescription( | ||||
| DifferentialRevision $revision) { | DifferentialRevision $revision) { | ||||
| if ($revision->isDraft()) { | if ($revision->isDraft()) { | ||||
| return pht('This revision will be submitted to reviewers for feedback.'); | return pht('This revision will be submitted to reviewers for feedback.'); | ||||
| } else { | } else { | ||||
| return pht('This revision will be returned to reviewers for feedback.'); | return pht('This revision will be returned to reviewers for feedback.'); | ||||
| } | } | ||||
| } | } | ||||
| protected function getRevisionActionSubmitButtonText( | |||||
| DifferentialRevision $revision) { | |||||
| // See PHI975. When the action stack will promote the revision out of | |||||
| // draft, change the button text from "Submit Quietly". | |||||
| if ($revision->isDraft()) { | |||||
| return pht('Publish Revision'); | |||||
| } | |||||
| return null; | |||||
| } | |||||
| public function getColor() { | public function getColor() { | ||||
| return 'sky'; | return 'sky'; | ||||
| } | } | ||||
| protected function getRevisionActionOrder() { | protected function getRevisionActionOrder() { | ||||
| return 200; | return 200; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||