Build comments button into the toolbar itself.
Instead of injecting the button to the toolbar from outside, the toolbar itself manages the button, providing methods to show and update it. Also the toolbar now fires an event when the comment count button is clicked - the comments controller just needs to handle that event, not deal with binding the event to toolbar element after render.
Loading
Please register or sign in to comment