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)
Sun, Mar 17, 4:14 AM
Unknown Object (File)
Tue, Mar 5, 5:27 PM
Unknown Object (File)
Feb 15 2024, 1:57 AM
Unknown Object (File)
Jan 29 2024, 8:50 AM
Unknown Object (File)
Dec 27 2023, 8:12 AM
Unknown Object (File)
Dec 21 2023, 3:23 PM
Unknown Object (File)
Dec 19 2023, 4:58 PM
Unknown Object (File)
Dec 19 2023, 9:11 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.