# How to know if the composer being used for editing topic,creating topic or replying a topic

**URL:** https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339
**Category:** Development
**Created:** [March 4, 2017, 8:44am UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339 "2017-03-04T08:44:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [March 4, 2017, 8:44am UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/1 "2017-03-04T08:44:01Z")

</div>

In the model properties for composer plugin outlet “composer-fields-below”,

I could not find the property of model object which says whether the composer is being used for creating a topic, or editing a topic or being replied to topic?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [March 5, 2017, 12:58pm UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/2 "2017-03-05T12:58:04Z")

</div>

I’m not sure I follow where you’re looking at the model, but the model for the composer component has an `action` attribute. That’s what you’re looking for.

 ![](https://global.discourse-cdn.com/meta/original/3X/4/b/4bbbc117f3e0351882e5fb699376d9748a415ce5.jpg)

---

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [March 7, 2017, 3:06pm UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/3 "2017-03-07T15:06:30Z")

</div>

When I try to inspect the ember component, I find the action to be null.

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

In the above screenshot, I inspected the properties for the editor composer. The action is null.

I surely might be doing something wrong, or looking in wrong component. Can you please tell me which component did u inspect?

Why do I need to know if the composer is for create topic or replying?  
Because I want to add a custom field in composer, which will be used only when creating topic, not for replying..

---

<div class="post-metadata">

### Author: ![net\_deamon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/net_deamon/32/70126_2.png) [@net\_deamon](https://meta.discourse.org/u/net_deamon)
#### Post date: [March 8, 2017, 5:36pm UTC](https://meta.discourse.org/t/how-to-know-if-the-composer-being-used-for-editing-topic-creating-topic-or-replying-a-topic/58339/4 "2017-03-08T17:36:09Z")

</div>

Thanks Joe,  
I was able to find the action in

`component.model.action`
