# Show username menu instead of notification menu in user menu?

**URL:** https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838
**Category:** UX
**Created:** [4 april 2020 om 18:57 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838 "2020-04-04T18:57:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![oneflydown](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oneflydown/32/155563_2.png) [@oneflydown](https://meta.discourse.org/u/oneflydown)
#### Post date: [4 april 2020 om 18:57 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/1 "2020-04-04T18:57:10Z")

</div>

Is it possible that I show the username menu and not the notification menu, when I click on the username icon as shown in below pic?

 ![1](https://global.discourse-cdn.com/meta/original/3X/1/6/1657549af6f7c9b4576785b0118b76607b6b2baa.png)

This is because I want my users to have access to logout in one click.

Thanks  
Oneflydown

---

<div class="post-metadata">

### Author: ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)
#### Post date: [4 april 2020 om 20:37 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/2 "2020-04-04T20:37:28Z")

</div>

Hello and welcome to meta @oneflydown

* * *

No, currently not an option. Also why is ‘one-click logout’ important?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [4 april 2020 om 21:40 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/3 "2020-04-04T21:40:32Z")

</div>

> [@oneflydown](#):
>
> want my users to have access to logout in one click.

Press ? to see the keyboard shortcuts. There is a keyboard shortcut to log out.

---

<div class="post-metadata">

### Author: ![oneflydown](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oneflydown/32/155563_2.png) [@oneflydown](https://meta.discourse.org/u/oneflydown)
#### Post date: [5 april 2020 om 05:03 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/4 "2020-04-05T05:03:14Z")

</div>

> [@ondrej](#):
>
> Also why is ‘one-click logout’ important?

Thanks for reply, I personally don’t logout, but I have used Discourse for a client, and he is persistently asking for the same: may be from old school of thought.

---

<div class="post-metadata">

### Author: ![oneflydown](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oneflydown/32/155563_2.png) [@oneflydown](https://meta.discourse.org/u/oneflydown)
#### Post date: [5 april 2020 om 05:05 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/5 "2020-04-05T05:05:21Z")

</div>

> [@codinghorror](#):
>
> Press ? to see the keyboard shortcuts. There is a keyboard shortcut to log out.

Great, I have seen it ZZ. But, I have used Discourse for a client, and he wants it that way. May be I can post this in marketplace, as I am looking for few more customisation’s. Thanks

---

<div class="post-metadata">

### Author: ![oneflydown](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oneflydown/32/155563_2.png) [@oneflydown](https://meta.discourse.org/u/oneflydown)
#### Post date: [5 april 2020 om 05:07 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/6 "2020-04-05T05:07:05Z")

</div>

> [@ondrej](#):
>
> No, currently not an option.

Btw, Is it not a change of default tab index, that I could achieve through, may be JavaScript?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [5 april 2020 om 12:24 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/7 "2020-04-05T12:24:44Z")

</div>

You should create a theme component that puts a logout link…somewhere. I did this for a client whose community members are likely to be using public access computers.

---

<div class="post-metadata">

### Author: ![zcuric](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zcuric/32/292837_2.png) [@zcuric](https://meta.discourse.org/u/zcuric)
#### Post date: [6 april 2020 om 13:56 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/8 "2020-04-06T13:56:05Z")

</div>

You can do it by reopening the user-menu widget and change it’s default state. Simply change: `currentQuickAccess: 'profile',`, like this

```js
<script type="text/discourse-plugin" version="0.8.20">
  api.reopenWidget("user-menu", {
    defaultState() {
      return {
        currentQuickAccess: 'profile',
        hasUnread: false,
        markUnread: null
      };
    }
  });
</script>

```

More details on user-menu widget, here:  
[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/user-menu.js#L168](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/user-menu.js#L168)

---

<div class="post-metadata">

### Author: ![oneflydown](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/oneflydown/32/155563_2.png) [@oneflydown](https://meta.discourse.org/u/oneflydown)
#### Post date: [7 april 2020 om 04:37 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/9 "2020-04-07T04:37:36Z")

</div>

> [@zcuric](#):
>
> You can do it by reopening the user-menu widget and change it’s default state. Simply change: `currentQuickAccess: 'profile',` , like this

Wow, such a simple tweak. Thanks @zcuric

---

<div class="post-metadata">

### Author: ![saba](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saba/32/264929_2.png) [@saba](https://meta.discourse.org/u/saba)
#### Post date: [29 juni 2022 om 04:19 UTC](https://meta.discourse.org/t/show-username-menu-instead-of-notification-menu-in-user-menu/146838/10 "2022-06-29T04:19:36Z")

</div>

This worked great! But how can I mark the profile tab as “isActive”, meaning that this tab will be greyed instead of the notifications tab.

I see a `markAsActive` [function](https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/widgets/user-menu.js#L173-L198) already available but I’m struggling to build the correct syntax to call this function on the profile tab as part of my theme component.
