1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 09:12:41 +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:
epriestley 2015-02-25 11:49:38 -08:00
parent d306765da4
commit 33a06c97d3

View file

@ -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')