Custom user menu tab

This theme component allows you to add a custom tab containing links in the user dropdown menu.

:octopus: Github repo: https://github.com/awesomerobot/discourse-user-menu-tab

:telescope: Preview on theme creator

:confounded: How do I install a Theme or Theme Component?

:heart_eyes_cat: Special thanks to @xrav3nz for building the tab system and making it easy to extend!

Settings

You can customize the tab’s icon, set links to be visible to users/moderators/admins, and set a custom icon for each link.

30 Likes

Hello there, Just an idea I had just now. Since the suspect user list does not exist anymore is it possible to remove this option as a default when you install the theme component?

Thanks

5 Likes

@ondrejj I decided to contribute and fixed the Suspect User List Entry. Now just waiting on a merge :slight_smile:

2 Likes

@awesomerobot, is it possible to request to have a menu item only showing to a specific group/tl ?

2 Likes

Thanks a bunch Gav! :tada:

1 Like

Yeah definitely possible, currently the component does:

 if (this.currentUser.moderator) {
          parseTabSettings(settings.moderator_only_tab_links);
          return items;
        }

…swap out this.currentUser.moderator to check for a group membership… and then settings.moderator_only_tab_links would be swapped out for the specific links for that group.

I can look into adding a setting that accepts various group names and links when I get a chance.