mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Herald queries correctly label Object Rules
Summary: Fixes T7730. Herald queries used to incorrectly label object rules as global rules. An object rule is now labeled as such. Test Plan: Made a few rules and looked at the herald query page. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Maniphest Tasks: T7730 Differential Revision: https://secure.phabricator.com/D12259
This commit is contained in:
parent
8e5153e866
commit
1ae1cdd7ba
1 changed files with 2 additions and 0 deletions
|
@ -186,6 +186,8 @@ final class HeraldRuleSearchEngine extends PhabricatorApplicationSearchEngine {
|
|||
pht(
|
||||
'Authored by %s',
|
||||
$handles[$rule->getAuthorPHID()]->renderLink()));
|
||||
} else if ($rule->isObjectRule()) {
|
||||
$item->addIcon('fa-briefcase', pht('Object Rule'));
|
||||
} else {
|
||||
$item->addIcon('fa-globe', pht('Global Rule'));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue