How to display a widget in the hamburger menu?

Yes, I do.

Yes, it shows some normal stuff I guess (when I trigger the modal):
(e,t){t=t||{};var n=(0,c.getOwner)(this),s=n.lookup("route:application"),a=s.controllerFor("modal");a.set("modalClass",t.modalClass||"".concat((0,u.dasherize)(e).toLowerCase(),"-modal"));var i=t.admi…

But unless I’m misunderstanding something, my issue isn’t the modal interaction (which works), but placing my widget in the hamburger menu.

I followed this modal creation tutorial and it works perfectly, the custom button shows the modal.
image
image
The modal works.
Adding the widget button in a template works and triggers the modal.
Adding a regular link in the hamburger menu works.
…But adding the widget button in the hamburger doesn’t work and creates an empty link instead. Are there some restrictions of some kind when using decorateWidget with “hamburger-menu”? :thinking:

2 Likes