The discussion revolves around retrieving category information in the Discourse composer. Heddson asks how to execute code when a category is selected in the composer, specifically to get the selected category’s details. fzngagan suggests observing model.categoryId in the composer controller. Heddson implements this using @observes and retrieves the category name from the category ID, confirming it works. fzngagan advises checking the model object for existing category data, and Heddson confirms the solution is effective.
Is it possible to run some code (from a theme component) when a category is selected in the composer? I’m interested in getting what category is selected both when the composer just been opened and when the category dropdown has been changed.
Was thinking that it perhaps could be possible by modifying a controller or a component, like the composer controller. But wasn’t able to find the category info..