Extend Application actions to add showUserCard

I am creating a custom user menu tab in the burger-bar, similar to the Discourse User Menu Tab theme component and would like to add an item that displays the current user card component. I have the item defined like so:

    icon: "eye",
    action: "showUserCard",
    content: "View profile",
    className: "view-profile",

I’ve got the menu displaying as I would like, just need to work out how to add the action. I’m guessing I need to use the API to extend app/routes/application.js? I’m rather new to Ember.js so still figuring my way around. Thanks!

1 Like