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?
The discussion revolves around determining whether a composer is being used for creating, editing, or replying to a topic. net_deamon initially struggled to find the relevant property in the model but was informed by joebuhlig that the action attribute in the composer component model should be referenced.
However, net_deamon found the action to be null when inspecting the ember component. After further investigation, net_deamon was able to locate the action in component.model.action.
The goal behind this inquiry is to add a custom field in the composer that is only visible when creating a topic, not when replying.
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?
When I try to inspect the ember component, I find the action to be null.
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..
Thanks Joe,
I was able to find the action in
component.model.action