1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

When "Fetch Refs" are configured for a repository, highlight the "Branches" menu item in the Diffusion Management UI

Summary: Ref T13448. Minor UI issue: setting a "Fetch Refs" value does not highlight the associated menu item, but should.

Test Plan: Set only "Fetch Refs", now saw menu item highlighted.

Maniphest Tasks: T13448

Differential Revision: https://secure.phabricator.com/D20895
This commit is contained in:
epriestley 2019-11-07 16:24:49 -08:00
parent 1b40f7e540
commit 502ca4767e

View file

@ -23,6 +23,7 @@ final class DiffusionRepositoryBranchesManagementPanel
$has_any =
$repository->getDetail('default-branch') ||
$repository->getFetchRules() ||
$repository->getTrackOnlyRules() ||
$repository->getPermanentRefRules();