Differential D20299 Diff 48497 src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/project/trigger/PhabricatorProjectTriggerManiphestStatusRule.php
| Show All 32 Lines | final class PhabricatorProjectTriggerManiphestStatusRule | ||||
| protected function newDropTransactions($object, $value) { | protected function newDropTransactions($object, $value) { | ||||
| return array( | return array( | ||||
| $this->newTransaction() | $this->newTransaction() | ||||
| ->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE) | ->setTransactionType(ManiphestTaskStatusTransaction::TRANSACTIONTYPE) | ||||
| ->setNewValue($value), | ->setNewValue($value), | ||||
| ); | ); | ||||
| } | } | ||||
| protected function newDropEffects($value) { | |||||
| $status_name = ManiphestTaskStatus::getTaskStatusName($value); | |||||
| $status_icon = ManiphestTaskStatus::getStatusIcon($value); | |||||
| $status_color = ManiphestTaskStatus::getStatusColor($value); | |||||
| $content = pht( | |||||
| 'Change status to %s.', | |||||
| phutil_tag('strong', array(), $status_name)); | |||||
| return array( | |||||
| $this->newEffect() | |||||
| ->setIcon($status_icon) | |||||
| ->setColor($status_color) | |||||
| ->setContent($content), | |||||
| ); | |||||
| } | |||||
| } | } | ||||