mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 22:10:55 +01:00
Use disabled style when viewing flags if the underlying object is closed
Summary: See IRC. This regressed at some point, probably when we fixed these rendering links-inside-links. Test Plan: Viewed a flagged, closed task. Reviewers: btrahan, chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11885
This commit is contained in:
parent
d306765da4
commit
33a06c97d3
1 changed files with 5 additions and 0 deletions
|
@ -152,6 +152,11 @@ final class PhabricatorFlagSearchEngine
|
|||
->setHeader($flag->getHandle()->getFullName())
|
||||
->setHref($flag->getHandle()->getURI());
|
||||
|
||||
$status_open = PhabricatorObjectHandleStatus::STATUS_OPEN;
|
||||
if ($flag->getHandle()->getStatus() != $status_open) {
|
||||
$item->setDisabled(true);
|
||||
}
|
||||
|
||||
$item->addAction(
|
||||
id(new PHUIListItemView())
|
||||
->setIcon('fa-pencil')
|
||||
|
|
Loading…
Reference in a new issue