# Toggle menu in Composer

**URL:** https://meta.discourse.org/t/toggle-menu-in-composer/87172
**Category:** Bug
**Created:** [10 mei 2018 om 15:43 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172 "2018-05-10T15:43:09Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![jerry0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerry0/32/94523_2.png) [@jerry0](https://meta.discourse.org/u/jerry0)
#### Post date: [10 mei 2018 om 15:43 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/1 "2018-05-10T15:43:09Z")

</div>

I’ve been struggling to understand the toggle menu in composer. The one at the top, next to the detail indicating what is being composed:

![image](https://global.discourse-cdn.com/meta/original/3X/5/6/567602b233d760a44e5f30fc3e58bcf9dad9333e.png)

Having looked at it in detail I’ve realised that there are some buggy problems in there which makes it highly confusing, hence my confusion!

I have reproduced the problems in Meta itself, so you should be able to see the behaviours here. I have tested in different browsers, they all seem to behave the same way.

1. Fresh New Private Message

When I am writing a fresh new private message, the toggle menu should probably allow me to toggle to “Create new Topic”. Instead the only option in the Toggle menu is “Reply as linked topic”…

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/c/ac33d527a8f937f5ec414016884ec9be641169e0.png)

however there is no original topic to link to(!) so it does indeed go to “Create a new Topic” rather than “Replying as linked topic” as was indicated in the toggle menu…

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/2/2242037aae51ce01721a69c9e2d68d85d9e0c7c7.png)

1. Remembering old composer actions

If I have either created a draft post or actually posted, then navigate entirely away from that, then click on “+Create New” anywhere (e.g. in the main homepage menu), the toggle menu gives me all sorts of options relating to that old action. Even when I am in a completely different category.

But this is an example of what I see in toggle menu…

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/d/adb6d5baf3c2863e60813423c2e19a569512febd.png)

Again, there is no topic that I am replying to.

Once I have sent a post and navigated away from it I would expect the composer to “forget” the old actions and simply give me the option to toggle to “New message” - but that’s all, as I am no longer composing for the previous topic context.

Please do let me know if I am missing something?

PS I got into this because the arrow is in itself confusing - so I was trying to work out what it was for! It seems to be very similar to (if not identical to) a “reply” icon. Should it not be something representing “options” instead? That would help users enormously.

I do see that there was a fair amount of discussion about this feature (for example here:  
[With the new right gutter, where should "Reply as Linked Topic" go? - #57 by tobiaseigen](https://meta.discourse.org/t/with-the-new-right-gutter-where-should-reply-as-linked-topic-go/44815/57) and here:  
[Menu toggle for different reply modes](https://meta.discourse.org/t/menu-toggle-for-different-reply-modes/58133)) so I apologise if I am re-raking old ground, but it doesn’t seem to be working right…

Many thanks!

---

<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: [10 mei 2018 om 23:43 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/2 "2018-05-10T23:43:52Z")

</div>

> [@jerry0](#):
>
> When I am writing a fresh new private message

I am curious, how are you triggering the composer to appear? Please list exact steps.

---

<div class="post-metadata">

### Author: ![jerry0](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jerry0/32/94523_2.png) [@jerry0](https://meta.discourse.org/u/jerry0)
#### Post date: [11 mei 2018 om 09:36 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/3 "2018-05-11T09:36:19Z")

</div>

There are various ways, all of which result in the “Reply as linked topic” toggle to incorrectly appear.

1. I go to my messages page (/u/jerry0/messages) and click on New Message;

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/6/665d75cb9c860b16260710a4caa9415424e204dc.png)

1. I go to a user card (e.g. after a search for a user in the header menu), and click on “Message” in the user card:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/0/4026f8ea412dd016aceac84ab80af0c7821098d7.jpg)

1. We are also using the createPM composer function as per @Johani 's excellent post here:

> [@Create a new topic button with category and topic template](https://meta.discourse.org/t/how-to-create-a-new-topic-button-with-category-and-topic-template/85775/4):
>
> For a PM you’d need to set a few of the composer options differently. Something like this: (Same as above, in a theme component in the \</head\> section) \<script type="text/discourse-plugin" version="0.8.18"\> api.decorateWidget("header-buttons:after", helper =\> { if (Discourse.User.current()) { // edit these two to your liking var $ntb\_text = "New Personal Message", $ntb\_icon = "heart", // no need to edit these $ntb\_icon\_class = ".fa-" + $ntb\_icon, …

---

<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: [11 mei 2018 om 09:58 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/4 "2018-05-11T09:58:45Z")

</div>

I see @j.jaffeux can you add this to your list, low priority, when you return.

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [23 mei 2018 om 16:27 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/5 "2018-05-23T16:27:09Z")

</div>

Should be fixed by

[https://github.com/discourse/discourse/commit/7232a6e5a9287018a85ba622223aed3481b8db51](https://github.com/discourse/discourse/commit/7232a6e5a9287018a85ba622223aed3481b8db51)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [23 mei 2018 om 16:27 UTC](https://meta.discourse.org/t/toggle-menu-in-composer/87172/6 "2018-05-23T16:27:12Z")

</div>


