Page MenuHomePhabricator

Fix "choose icon" on profile menu items
ClosedPublic

Authored by epriestley on Jan 21 2016, 6:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:42 PM
Unknown Object (File)
Sun, Apr 21, 3:50 AM
Unknown Object (File)
Sun, Apr 14, 12:27 PM
Unknown Object (File)
Thu, Apr 11, 7:59 AM
Unknown Object (File)
Sun, Apr 7, 4:49 AM
Unknown Object (File)
Tue, Apr 2, 8:47 PM
Unknown Object (File)
Tue, Apr 2, 6:16 AM
Unknown Object (File)
Mar 17 2024, 4:14 AM
Subscribers
None

Details

Summary

Ref T10054. This fix is a little rough but the "right" fix involves a ton of rewriting to AphrontSideNavFilterView and I don't want to open that can of worms up yet.

Specifically, the problem is:

  • we build the menu in order to populate the mobile/application menu;
  • as a side effect of building the menu (not rendering the menu), we initialize the menu collapse/expand behavior;
  • but we never actually render the menu, so the JX.$() call fails.

The right fix would be to initialize the behavior only when we render the menu, but then AphorntSideNavFilterView would need to know about profile menu behaviors. It probably should some day, but I think today is not that day.

Test Plan

Set icons on a link on a profile menu.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix "choose icon" on profile menu items.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jan 21 2016, 6:05 PM
This revision was automatically updated to reflect the committed changes.