diff --git a/src/applications/paste/xaction/PhabricatorPasteStatusTransaction.php b/src/applications/paste/xaction/PhabricatorPasteStatusTransaction.php index a313e45eab..b6a2d2b50d 100644 --- a/src/applications/paste/xaction/PhabricatorPasteStatusTransaction.php +++ b/src/applications/paste/xaction/PhabricatorPasteStatusTransaction.php @@ -1,62 +1,62 @@ getStatus(); } public function applyInternalEffects($object, $value) { $object->setStatus($value); } private function isActivate() { - return ($this->getNewValue() == PhabricatorPaste::STATUS_ARCHIVED); + return ($this->getNewValue() == PhabricatorPaste::STATUS_ACTIVE); } public function getIcon() { if ($this->isActivate()) { return 'fa-check'; } else { return 'fa-ban'; } } public function getColor() { if ($this->isActivate()) { return 'green'; } else { return 'indigo'; } } public function getTitle() { if ($this->isActivate()) { return pht( '%s activated this paste.', $this->renderAuthor()); } else { return pht( '%s archived this paste.', $this->renderAuthor()); } } public function getTitleForFeed() { if ($this->isActivate()) { return pht( '%s activated %s.', $this->renderAuthor(), $this->renderObject()); } else { return pht( '%s archived %s.', $this->renderAuthor(), $this->renderObject()); } } }