In Remarkup, render archived Herald rules with strikethrough for consistency
Summary: Fixes T11969.
Test Plan: {T11969}
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T11969
Differential Revision: https://secure.phabricator.com/D17010
This commit is contained in:
@@ -38,6 +38,10 @@ final class HeraldRulePHIDType extends PhabricatorPHIDType {
|
|||||||
$handle->setName($monogram);
|
$handle->setName($monogram);
|
||||||
$handle->setFullName("{$monogram} {$name}");
|
$handle->setFullName("{$monogram} {$name}");
|
||||||
$handle->setURI("/{$monogram}");
|
$handle->setURI("/{$monogram}");
|
||||||
|
|
||||||
|
if ($rule->getIsDisabled()) {
|
||||||
|
$handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user